html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Didact Gothic', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f7f5fa;
}


.logo img {
  max-height: 80px;
  height: auto;
  /* position: fixed; */
}

.contacts a {
  margin: 10px 10px;
  color: #b42870;
  text-decoration: none;
  font-size: 26px;
}

.btn-zapis,
.btn-primary {
  background: #76cd16;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 18px;
}

.btn-zapis:hover,
.btn-primary:hover {
  background: #df84b3;
}



.header-simple h1 { font-size: 20px; }


.marquee {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: #f0f0f0;
  padding: 10px;
}

.marquee h2 {
  display: inline-block;
  font-size: 32px;
  min-width: 100%; /* текст всегда шире контейнера */
  padding-left: 100%;
  animation: scroll 50s linear infinite;
}

/* Анимация движения */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* При наведении — пауза */
.marquee:hover p {
  animation-play-state: paused;
}

/* 📱 Мобильная адаптация */
@media (max-width: 768px) {
  .marquee {
    font-size: 14px;   /* уменьшаем шрифт */
    padding: 6px;      /* компактнее отступы */
  }
  .marquee p {
    animation-duration: 18s; /* медленнее для маленького экрана */
  }
}






.search-form {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1;
}

.search-form button {
  padding: 8px 22px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.search-form button:hover {
  background: #555;
}



.menu-item:hover .submenu {
  display: block;
}



.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.centered-block {
  display: flex;
  justify-content: center;
}

.btn-zapis {
  display: inline-block;
}

.submenu li {
  margin: 0;
  padding: 0;
}

.submenu li a {
  display: block;
  padding: 10px 16px;
  color: #222;
  font-size: 16px;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #73c77f;
}

/* Показывать подменю при наведении */
.has-submenu:hover .submenu {
  display: block;
}

.has-submenu.open .submenu { display:block; }

.footer {
  background: #b42870;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}


@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .contacts {
    margin: 10px 0;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 10px 0;
  }
}

.services {
  margin: 40px auto;
  max-width: 1000px;
  text-align: center;
}

.services h2 {
  font-size: 32px;
  color: #80134b;
  margin-bottom: 30px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  padding: 0 20px;
}

.service-grid a {
  text-decoration: none;
  color: #222;
  text-align: center;
  transition: transform 0.3s ease;
  max-width: 320px;
}

.service-grid a:hover {
  transform: scale(1.05);
  color: #b42870;
}

.service-grid img {
  width: 100%;
  border-radius: 8px;
}

.service-grid p {
  margin-top: 10px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}








.news {
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.news h1 {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 32px;
  color: #44215c;
  margin-bottom: 30px;
  text-align: center;
}


.news-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


.news-item img {
  width: 200px;
  border-radius: 8px;
}

.news-item div {
  flex: 1;
}

.news-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #b42870;
}

.news-item a {
  text-decoration: none;
  color: #b42870;
}

.news-item a:hover {
  color: #80134b;
}

.news-item p {
  margin: 0;
  font-size: 16px;
  color: #444;
}

@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
    text-align: center;
  }

  .news-item img {
    width: 100%;
    max-width: 300px;
  }

  .news-item div {
    text-align: center;
  }
}
.team {
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}

.team h2 {
  font-size: 32px;
  color: #80134b;
  margin-bottom: 30px;
}




.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-member img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffdbee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.team-list {
  display: block;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}



.team-member:hover {
  transform: scale(1.05);
}


.team-member h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #b42870;
}

.team-member p {
  margin: 0;
  font-size: 16px;
  color: #444;
}
.about {
  margin: 60px auto;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.about h2 {
  font-size: 32px;
  color: #80134b;
  margin-bottom: 20px;
}

.about p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
}
.contact {
  margin: 60px auto;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.contact h2 {
  font-size: 32px;
  color: #80134b;
  margin-bottom: 20px;
}

.contact p {
  font-size: 18px;
  color: #444;
  margin: 10px 0;
}

.contact a {
  color: #b42870;
  text-decoration: none;
}

.contact a:hover {
  color: #80134b;
}

.contact .map {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
}
.site-note {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 8px 0;
  background-color: #f0f0f0;
  font-style: italic;
}
.feedback {
  margin: 60px auto;
  max-width: 600px;
  padding: 0 20px;
  text-align: center;
}

.feedback h2 {
  font-size: 32px;
  color: #80134b;
  margin-bottom: 30px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feedback-form input,
.feedback-form textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Didact Gothic', sans-serif;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #b42870;
  outline: none;
}

.feedback-form button {
  align-self: center;
  padding: 12px 30px;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.online-button {
  padding: 10px 20px;
  border: 2px solid #007BFF;
  background-color: white;
  color: #007BFF;
  border-radius: 6px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(238, 96, 231, 0.589);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}




.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
}


.modal-content h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
  color: #444;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

.modal-content button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #7caee4;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
  background-color: #e685cd;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #e91e63;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}





.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.show {
  display: block;
}





.btn-callback {
  background-color: #5fe644; 
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-callback:hover {
  background-color: #c427e4;
  transform: scale(1.05);
}


.map {
  text-align: center;   /* всё содержимое блока по центру */
  margin: 40px 0;
}

.map {
  text-align: center;   /* всё содержимое блока по центру */
  margin: 40px 0;
}

.map iframe {
  display: inline-block; /* чтобы iframe слушался text-align */
}

.news-section {
  max-width: 1200px;       /* ограничиваем ширину блока */
  margin: 0 auto;         /* автоматические отступы слева и справа → центрирование */
  text-align: center;     /* выравнивание содержимого по центру */
  padding: 20px;          /* внутренние отступы */
}

.map1 {
  text-align: center;   /* всё содержимое блока по центру */
  margin: 40px 0;
}

.contacts nav {
  margin-top: 10px;
}
.contacts nav a {
  margin: 0 5px;
  text-decoration: none;
  color: #333;
}
.contacts nav a:hover {
  text-decoration: underline;
}









 .phone-form-wrapper {
    max-width: 500px;
    margin: 30px auto;
    font-family: 'Didact Gothic', sans-serif;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    padding: 20px;
    box-sizing: border-box;
  }

  .phone-form-wrapper table {
    width: 100%;
    border-collapse: collapse;
  }

  .phone-form-wrapper td {
    padding: 10px;
    vertical-align: middle;
  }

  .phone-form-wrapper input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
  }

  .phone-form-wrapper button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .phone-form-wrapper button:hover {
    background-color: #45a049;
  }

  @media (max-width: 480px) {
    .phone-form-wrapper td {
      display: block;
      width: 100%;
    }

    .phone-form-wrapper button {
      width: 100%;
      margin-top: 10px;
    }
  }



.header-advancedd {


    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 20px;
    gap: 20px;
    background: #a1e971;

}



@media (max-width: 600px) {
  
}
.nav-btn {
  background:#a0d47c;       /* белая кнопка */
  color:#333;
  border:none;
  padding:8px 12px;
  border-radius:4px;
  cursor:pointer;
  font-weight:600;
}
.has-submenu {
  position:relative;
}
.submenu {
  position:absolute;
  top:100%; left:0;
  background:#a0d47c;
  border:1px solid #a0d47c;
  border-radius:4px;
  list-style:none;
  padding:8px 0;
  margin:20px;
  display:none;          /* скрыто по умолчанию */
  min-width:160px;
}
.submenu li a {
  display:block;
  padding:8px 12px;
  color:#333;
  text-decoration:none;
}
.submenu li a:hover {
  background:#f0f0f0;
}
.has-submenu.open .submenu {
  display:block;         /* показываем при клике */
}

