body{
    background-image: url('/static/images/Main_background.png');
    background-size: cover;         /* масштабировать по экрану */
    background-position: center;    /* выровнять по центру */
    background-repeat: no-repeat;   /* не повторять */
    background-attachment: fixed;   /* фон зафиксирован при прокрутке */
    
}
button  {
  background-size: cover;  /* ✅ масштабирует, сохраняя всю картинку без обрезки */
  background-position: center;
  background-repeat: no-repeat;
}
main {
  padding: 20px;
}

.social-links {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.social-links table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.social-links table th,
.social-links table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.social-links table th {
  background-color: #ff7e10;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.social-links table tr:last-child td {
  border-bottom: none;
}

.social-links table tr:hover {
  background-color: rgba(255, 126, 16, 0.1);
}
.navbar-nav .nav-link {
    font-size: 20px;
    font-weight: 500;
}
.carousel-inner {
  margin-top: 20px;
  border-radius: 20px; /* скругление */
  overflow: hidden;    /* чтобы края картинок не выходили за рамку */
}

.questionnaire{
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.gif-block{
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}


.form-block{
  flex: 1;
}

textarea.form-control {
  height: auto;
  width : 100%;
  resize: none;

}
.main_logo {
    width: 30px;            /* задаём ширину */
    height: 30px;           /* задаём такую же высоту */
    object-fit: cover;      /* обрезает изображение по кругу, не сжимая */
    border-radius: 50%;     /* делает изображение круглым */
}
.nav-link img{
  background-size: cover;  /* ✅ масштабирует, сохраняя всю картинку без обрезки */
  background-position: center;
  background-repeat: no-repeat;
  }
.nav-link {
    color: #f58f00 !important; /* Замени на нужный цвет */
    
}
.nav-link:hover {
    color: #0092cc !important; /* Цвет при наведении */
 
}

.carousel-item {
  height: 450px; /* или другая нужная высота */
  background-size: cover;  /* ✅ масштабирует, сохраняя всю картинку без обрезки */
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-height: 600px) and (orientation: landscape) {
  .carousel-item {
    height: 250px;
  }
}


.slide-bg-1 {
  background-image: url('/static/images/Solis_uz_prieksu_img2.jpg');
}

.slide-bg-2 {
  background-image: url('/static/images/Solis_uz_prieksu_img3.jpg');
}

.slide-bg-3 {
  background-image: url('/static/images/Solis_uz_prieksu_img4.jpg');
}

.btn-apply,
.btn-docs,
.btn-call {
  background-color: #ff7e10; /* оранжево-красный */
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-apply:hover,
.btn-docs:hover,
.btn-call:hover {
  background-color: #e66d00;
  color: white;
}
.social-links {  
  margin-top: 20px;
  border-radius: 20px;        /* отступ сверху */ 
  padding: 20px;      /* отступ снизу */
  text-align: center; 
  background-color: white;     /* центрируем */
}
.social-title {
  color: #0092cc;               /* цвет текста */
  margin-bottom: 15px;       /* отступ под заголовком */
}

.social-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.social-actions .btn {
  width: 300px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  padding: 12px 16px;
}

@media (max-width: 1100px) {
  .social-actions {
    flex-wrap: wrap;
  }

  .social-actions .btn {
    width: 260px;
  }
}


.social-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  border-radius: 12px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background-color: transparent;
}

.social-btn.instagram::after {
  content: "";
  background-image: url('/static/images/instagram_logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  pointer-events: none;
}
.social-btn.facebook::after {
  content: "";
  background-image: url('/static/images/facebook_logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  pointer-events: none;
}

.social-btn::before {
  content: "";
  display: block;
  background: linear-gradient(45deg, white, #f58f00,#0092cc);
  background-size: 600%;
  background-position: 0 0; /* 👈 обязательно */
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 0;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  filter: blur(4px);
  transition: opacity 0.3s ease-in-out;
  border-radius: 14px;
  opacity: 0;
  animation: glowing 10s linear infinite;
  pointer-events: none;
}

.social-btn:hover::before {
  opacity: 1;
}


/* Пример с логотипами */
.social-btn.instagram {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-btn.facebook {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contacts{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  
}
.contact1_content{
  color: black;         /* цвет текста */
}
@keyframes green-glow {
  0% {
    box-shadow: 0 0 8px 2px rgba(0, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 16px 8px rgba(0, 255, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 8px 2px rgba(0, 255, 0, 0.3);
  }
  
}
.phone1{
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 25px;
  background-color: white;
  background-image: url('/static/images/phone.png');
  background-repeat: no-repeat;     /* не повторять */
  background-position: center;      /* по центру */
  background-size: contain; 
  cursor:pointer;
  transition: 0.3s ease;

}
.contact2_content{
  color: black;         /* цвет текста */
}
.phone2{
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 25px;
  background-color: white;
  background-image: url('/static/images/phone.png');
  background-repeat: no-repeat;     /* не повторять */
  background-position: center;      /* по центру */
  background-size: contain; 
  cursor:pointer;
  transition: 0.3s ease;
}
.phone2:hover,.phone1:hover{
  transform: scale(1.1);
  animation: green-glow 4s infinite alternate ease-in-out;
  animation-direction:alternate-reverse;
}
.choose{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.instruction_part{
  color: black;         /* цвет текста */
}


.media-section {
  justify-content: space-between;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}
.photos,.videos{
  flex: 1;
  width: 100%;
  display: grid;
  border-radius: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.videos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.photo-card,
.video-card {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.photo-card:hover,
.video-card:hover {
  transform: scale(1.05);
}
.photos img,
.videos video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .videos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .photos,
  .videos {
    grid-template-columns: 1fr;
  }
}
.gallery-section{
  border-radius: 12px;
  background-color: white;  
  color: rgb(0, 0, 0);   
  padding: 20px;
}

.social-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  border-radius: 12px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background-color: transparent;
}

.social-btn.instagram::after {
  content: "";
  background-image: url('/static/images/instagram_logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  pointer-events: none;
}
.social-btn.facebook::after {
  content: "";
  background-image: url('/static/images/facebook_logo.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
  pointer-events: none;
}

.social-btn::before {
  content: "";
  display: block;
  background: linear-gradient(45deg, white, #f58f00,#0092cc);
  background-size: 600%;
  background-position: 0 0; /* 👈 обязательно */
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 0;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  filter: blur(4px);
  transition: opacity 0.3s ease-in-out;
  border-radius: 14px;
  opacity: 0;
  animation: glowing 10s linear infinite;
  pointer-events: none;
}

.social-btn:hover::before {
  opacity: 1;
}


/* Пример с логотипами */
.social-btn.instagram {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-btn.facebook {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.teacher:hover{
  z-index: 2;
  transform: scale(1.1);
  animation: lily-white 4s infinite alternate ease-in-out;
  animation-direction:alternate-reverse;
  border-radius: 0.5rem;
}
.teacher:hover label{
  opacity: 0;
}
.teacher:hover img{
  opacity: 1;
}

.teacher label{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  opacity: 1;
  transition: 1.5s ease;
  z-index: 2;
  text-align: center;
  padding: 6px 10px;
  color: #0092cc;
  background-color: rgba(255, 255, 255, 0.85);
  font-size: 24px; 
}   
.teachers_photos { 
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 20px;
  margin: 0 auto;
}
.teacher{
  position: relative;
  border-radius: 20px;
  z-index: 1;
  transition: all 0.3s ease-out;
  background-color: #ddf5f5;

}
.teacher a{
  width: 100%;
  height: 100%;
  display: block;
  position:relative;
}
.teacher img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  opacity: 1;
  transition: 1.5s ease;
}
@keyframes lily-white {
  0% {
    box-shadow: 0 0 8px 2px #ff7e10;
  }
  50% {
    box-shadow: 0 0 16px 8px white;
  }
  100% {
    box-shadow: 0 0 8px 2px #0092cc;
  }
  
}
.teacher_gallery{ 
  margin-top: 20px;
  width: calc(100% - 40px);
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;        /* отступ сверху */ 
  padding: 20px;      /* отступ снизу */
  text-align: center; 
  background-color:white ;      /* центрируем */
}

td, th {
  border: 5px solid #ddf5f5;
  color: #0092cc;
  text-align: left;
  padding: 8px;
}