
     .container-teg {
      background: #fff;
      border-radius: 56px;
      padding: 40px;
      max-width: 1100px;
      margin: auto;
      gap: 30px;
      margin-top: 40px;

    }
    .tag-teg.dot-teg::before {
  content: "";

  background-color: var(--dot-color, #999);

  flex-shrink: 0;
}

    .header-teg{
      text-align: left;
      font-size: 40px !important;
      font-weight: 500 !important;
      margin-bottom: 40px;
      color: #1565C0;
    }

    .flex-wrapper-teg {
      display: flex;
      gap: 40px;
    }

    .left-panel-teg {
      flex-basis: 320px;
      flex-shrink: 0;
    }

.school-logo-teg {
  width: auto;
  height: 104px;
  border-radius: 8px;
  background: #fff;          
  display: flex;             
  align-items: center;     
  justify-content: center;  
  overflow: hidden;  
  margin-bottom: 10px;         
}

.school-logo-teg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

}

.school-info-teg1 {
  font-size: 16px;
  color: #4d4d4d; 
  margin-bottom: 1px;
  display: flex;
  align-items: flex-start; 
  gap: 8px;
  transition: color 0.2s ease; 
}
  .school-info-teg {
  font-size: 16px;
  color: #4d4d4d; 
  margin-bottom: 1px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
 
}


.school-info-teg1:hover {
  color: #2196F3; 
}

.icon-teg1 {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
    .link-btn-teg {
      display: flex;
      justify-content: center;
      align-items: center;
      background: #1565C0;
      color: white;
      text-align: center;
      padding: 10px;
      border-radius: 10px;
      font-weight: 500;
      text-decoration: none;
      margin: 12px 0;
      gap: 6px;
    }

    .age-teg,
    .grades-teg,
    .type-teg,
    .price-teg,
    .features-teg,
    .accreditation-teg {
      margin-bottom: 16px;
    }
   

    .school-details-teg strong {
      color: #212121;
      font-size: 16px;
      font-weight: 500;
      display: block;
      margin-bottom: 0;

    }

    .age-teg span,
    .grades-teg span,
    .price-teg span,
    .accreditation-teg span {
      display: block;
      font-size: 16px;
      color: #333;
      font-weight: 400;
      margin-top: 2px;
      margin-bottom: 0;
    }

    .type-teg > div,
    .features-teg,
    .accreditation-teg {
      margin-top: 6px;
      padding-top: 0;
    }

    .tag-teg {
      display: inline-block;
      background: #fff;
      color: #333;
      padding: 8px 14px;
      border-radius: 6px;
      margin-top: 6px;
      font-size: 16px;
      line-height: 1.4;
      vertical-align: middle;
  
    }
    .price-teg{
    display: flex;
    flex-wrap: wrap;
    gap: 4px; 
}

    .price-teg .tag-teg,
    .accreditation-teg .tag-teg {
        display: inline-block;
      background: #fff;
      color: #333;
      padding: 6px 12px; 
      border-radius: 6px;
      margin-top: 6px;
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      line-height: 1.4;
      vertical-align: middle;
      font-weight: 400;
    }
   .type-teg .tag-teg,
.features-teg .tag-teg {
  display: inline-block;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 6px;
  margin-right: 8px; 
  margin-bottom: 6px; 
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  vertical-align: middle;
}


    .main-content-teg {
      flex-grow: 1;
      max-width: 100%;
    }

.gallery-teg {
  margin-bottom: 10px;
  text-align: center;
  background-color: #fff; 
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px; 
  
  display: flex;
  justify-content: center;
  align-items: flex-start; 
}

.gallery-teg img {
  border-radius: 16px; 
  border: 1px solid #dedede;
  max-width: 100%;    
  max-height: 605px;  
  object-fit: contain; 
    padding: 40px 40px 40px 40px; /* сверху 20px, снизу 40px */
}

    .gallery-controls-teg {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 4px;
      margin-top: 12px;
    }

    .gallery-controls-teg button {
      background: transparent;
      border: 1px solid #2196F3;
      border-radius: 8px;
      padding: 6px 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .gallery-controls-teg button svg {
      width: 28px;
      height: 28px;
      fill: #2196F3;
    }

    .text-content-teg p {
      color: #424242;
      line-height: 1.6;
      font-size: 16px;
      margin-top: 0;
      margin-bottom: 12px;
     
    }

.read-more-teg {
  display: none;
}

.read-more-teg:hover {
  background-color: #E3F2FD;     
  transform: scale(1.02);        
}


.read-more-icon-teg {
  width: 18px;
  height: auto;
  transition: transform 0.3s ease;
}


.read-more-teg:hover .read-more-icon-teg {
  transform: translateX(4px);
}

    .school-details-teg {
      background: #f1f1f3;
      border-radius: 16px;
      padding: 20px;
      margin-top: 16px;
    }

    .school-details-teg > div {
      margin-bottom: 30px;
    }

    .dot-teg {
      position: relative;
      padding-left: 25px;
      margin: 0;
    }

    .dot-teg::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      position: absolute;
      left: 4px;
      top: 50%;
      transform: translateY(-50%);
    }

    .author-teg::before {
      background-color: #D81B60;
    }
    .alt-teg::before {
      background-color: #AB47BC;
    }
    .online-teg::before {
      background-color: #26A69A;
    }
    .family-teg::before {
      background-color: #FFCA28;
    }

    .school-header-block-teg {
      background-color: #f1f1f3;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 20px;
    }

   @media (max-width: 600px) {
  .container-teg {
    padding: 20px;
    border-radius: 24px;
    margin-top: 20px;
  }

  .header-teg {
    font-size: 22px !important;
    text-align: left;
    margin-bottom: 24px;
  }
  .text-content-teg {
  line-height: 1.6;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.text-content-teg.collapsed {
  /* обрезка текста с градиентом */
  line-height: 1.6;
  max-height: calc(1.6em * 15);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 15;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,    
    rgba(0,0,0,1) 66%,         
    rgba(0,0,0,0) 100%          
  );
  -webkit-mask-clip: content-box;
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 66%,
    rgba(0,0,0,0) 100%
  );
  mask-composite: intersect;
}

.text-content-teg:not(.collapsed) {
  /* снимаем маску и показываем весь текст */
  max-height: none;
  display: block;
  -webkit-mask-image: none;
  mask-image: none;
  color: #000; /* делаем текст чёрным */
}

.text-content-teg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6em; 
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
}

.text-content-teg:not(.collapsed)::after {
  content: none;
}

  .flex-wrapper-teg {
    flex-direction: column;
    gap: 20px;
  }

  .left-panel-teg,
  .main-content-teg {
    flex-basis: auto;
    width: 100%;
  }

  .school-logo-teg img {
    max-width: 100%;
    height: auto;
  }
     .text-content-teg p {
      font-size: 14px;
      margin-top: 0;
    
     
    }

  .school-info-teg {
    font-size: 14px;
  }

  .link-btn-teg {
    font-size: 14px;
    padding: 8px;
    border-radius: 8px;
  }

  .school-details-teg {
    padding: 16px;
  }

  .school-details-teg strong,
  .tag-teg,
  .age-teg span,
  .grades-teg span,
  .price-teg span,
  .accreditation-teg span {
    font-size: 14px;
  }

  .gallery-teg img {
    height: auto;
    max-width: 100%;
  }

  .read-more-teg {
    width: 100%;
    font-size: 14px;
    padding: 12px;
     display: inline-flex;
  border: 1px solid #2196F3;
  color: #2196F3;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  
  font-weight: 500;
  align-items: center;
  gap: 6px;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  transition: all 0.3s ease; 
  }

  .read-more-icon-teg {
    width: 16px;
  }

  .school-header-block-teg {
    padding: 16px;
    position: relative;
  }
}

/*-------------------------------------------------------*/
.container-teg1 {
  background-color: white;
  border-radius: 56px;
  padding: 40px;
  max-width: 1100px;
  width: 100%;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.header-teg {
  color: #1565C0;
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 500;
}

.address-teg {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #212121;
}


.details-teg {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #424242;
  margin-bottom: 25px;
  font-weight: 400;
}

.details-teg > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; 
}

.details-teg span {
  font-weight: 500;
  color: #212121;
  font-size: 16px;
}

.details-teg .divider {
  color: #9e9e9e;
  margin: 0 6px;
}


.map-teg {
  width: 100%;
  height: 350px;
  border: 1px solid #2196F3;
  border-radius: 20px;
  background-color: white;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}


@media (max-width: 600px) {
  .container-teg1 {
    padding: 20px;
    border-radius: 24px;
    margin-top: 20px;
  }

  .header-teg {
    font-size: 22px;
    text-align: left;
    margin-bottom: 16px;
  }

  .address-teg {
    font-size: 14px;
  }

 
  .details-teg {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .details-teg > div {
    display: block;
    white-space: normal; 
  }

  .details-teg .divider {
    display: none; 
  }

  .details-teg span {
    font-size: 14px;
  }

  .map-teg {
    height: 250px;
    border-radius: 16px;
  }

  .map-frame {
    border-radius: 16px;
  }
}

/*---------------------------------------------------------*/


.container-teg.reviews-section {
  background: #fff;
  border-radius: 56px;
  padding: 40px;
  max-width: 1100px;
  margin: 30px auto 0;
  box-sizing: border-box;
  margin-top: 40px;
  margin-bottom: 40px;
}


.header-teg.reviews-title {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #1565C0;
  line-height: 1.2;
  white-space: normal;
}


.metrics-teg.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}


.metric-item-teg.metric-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  min-height: 80px;
  width: 350px;
}


.icon-wrapper-teg.icon-wrapper {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}


.icon-img1 {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}


.metric-text-teg.metric-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.value-teg.value {
  font-weight: 500;
  font-size: 16px;
  color: #212121;
  white-space: normal;
}


.subtext-teg.subtext {
  font-size: 12px;
  color: #757575;
  font-weight: 400;
  white-space: normal;
}


.reviews-teg.reviews .cards-teg.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;

}

.card-teg.card {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 0;
  margin-bottom: 16px; 
}

.header-teg.header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.avatar-teg.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
}

.avatar-teg.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info-teg.user-info {
  font-size: 16px;
  color: #212121;
  font-weight: 400;
}

.user-name-teg.user-name {
font-weight: 500;
  margin: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap; /* текст в одну строку */
  flex-grow: 1;

  
}
.user-name-teg.user-name > * {
  margin: 0;
  padding: 0;
  text-align: left;
}

.date-teg.date,
.period-teg.period {
  font-size: 14px;
  color: #757575;
  font-weight: 400;
}

.networks-teg.networks {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.icon-teg.icon-net {
  width: 30px;
  height: 30px;
  
}

.social-icons-teg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 200px;
}

.text-teg.text {
  font-size: 16px;
  color: #212121;
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-teg.footer1 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;       
  overflow-wrap: break-word; 
  white-space: normal;   
}

.badge-teg.badge1 {
  display: inline-flex !important;    
  align-items: center;
  gap: 6px !important; 
  font-weight: 400;
  font-size: 14px;
  padding: 12px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: #689F38;
 flex-shrink: 0 !important;        
  max-width: none !important;       
  white-space: nowrap !important;    
  overflow: visible !important;     
}

.badge-teg.badge1.negative {
  background: #ffffff;
  color: #E53935;
}

.icon-teg.icon-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 4px; 
}

.actions-teg.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.btn-teg.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  color: #2196F3;
  border: 1px solid #2196F3;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.btn-teg.btn:hover {
  background: #f0f9ff;
  transform: scale(1.05); 
}

.icon-btn5 {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}



.icon-btn6 {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

@media (max-width: 600px) {
  .container-teg.reviews-section {
    padding: 20px;
    border-radius: 24px;
    margin-top: 20px;
  }

  .header-teg.reviews-title {
    font-size: 22px;
    text-align: left;
  }

  .metrics-teg.metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-item-teg.metric-item {
    width: 100%;
    flex-direction: row;
  }

  .reviews-teg.reviews .cards-teg.cards {
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  .card-teg.card {
    padding: 16px;
  }

  .header-teg.header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .user-info-teg.user-info {
    font-size: 14px;
  }

  .date-teg.date,
  .period-teg.period {
    font-size: 13px;
  }

  .networks-teg.networks,
  .social-icons-teg {
      display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 8px;
  width: 100%;
  }

  .social-icons-teg {
    flex-wrap: wrap;
    gap: 4px;
  }

  .text-teg.text {
    font-size: 14px;
  }

  .footer-teg.footer1 {
    flex-direction: column;
    gap: 10px;
  }

  .badge-teg.badge1 {
    font-size: 14px;
    padding: 10px 8px;
    justify-content: flex-start;
  }

  .badge-teg.badge1 .icon-teg.icon-badge {
    margin-left: 6px;
  }

  .actions-teg.actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-teg.btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  .icon-btn5,
  .icon-btn6 {
    width: 20px;
    height: 20px;
  }
}

/*---------------------------------*/
.calendar-teg.calendar {
      max-width: 800px;
      margin: 0 auto;
      background: #fff;
      padding: 20px;
      border-radius: 56px;
      margin-top: 40px;
    }

    .calendar-teg.calendar h2 {
      color: #1565C0;
      font-size: 28px;
      margin-bottom: 24px;
      font-weight: 400;
      margin-top: 20px;
    }

    .events-grid-teg.events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
    }

    .event-card-teg.event-card {
      background: #F5F5F5;
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    .event-image-wrapper-teg.event-image-wrapper {
      padding: 8px 8px 0 8px; 
    }

    .event-image-teg.event-image {
      width: 100%;
      height: 100px;
      object-fit: cover;
      border-radius: 12px;
      display: block;
    }

    .event-content-teg.event-content {
      padding: 12px 16px 16px;
    }

    .event-date-teg.event-date {
      font-weight: bold;
      font-size: 14px;
      margin-bottom: 6px;
    }

    .event-desc-teg.event-desc {
      font-size: 14px;
      color: #555;
    }

    .calendar-footer-teg.calendar-footer {
      text-align: center; 
      margin-top: 32px;
    }

    .all-events-btn-teg.all-events-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 15px 60px;
      font-size: 13px;
      font-weight: 400;
      color: #2196F3;
      background-color: #fff;
      border: 1px solid #2196F3;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .all-events-btn-teg.all-events-btn:hover {
      background-color: #0077cc;
      color: #fff;
    }

    .btn-icon-teg.btn-icon {
      width: 16px;
      height: 16px;
      object-fit: contain;
    }

  

