@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
}

.mej{
  line-height: 1.5;
}
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

a {
  color: #2C3478;
  text-decoration: none;
  white-space: nowrap;
}

a[href]{
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.line {
  border-bottom: 2px solid #2C3478;
  flex-grow: 1;
  opacity: 0.6;
}

.cards {
  display: flex;
}

.cards iframe {
  margin-left: 10%;
}

.container {
  box-sizing: border-box;
  max-width: 190vh;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 11px;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__nav {
  width: 75%;
}

.header__nav-top,
.header__nav-bottom {
  display: flex;
  justify-content:center;
}

.header__list {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
  font-size: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.header__logo {
  width: 90px;
  height: 90px;
  margin-left: 10px;
  object-fit: contain;
}

.header__logoo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.navbar {
  padding: 15px 20px;
  position: relative;
  z-index: 900;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.menu {
  display: none;
  list-style: none;
  flex-wrap: wrap;
  width: 160px;
}

.menu li {
  margin: 0px;
  flex-wrap: wrap;
  width: 250px;
  position: relative;
  padding: 5px 0;
  padding-left: 10px;
}

.menu li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 2%;
  width: 90%;
  height: 2px;
  background: #2C3478;
}

.menu li:last-child::after {
  display: none;
}

.menu a {
  text-decoration: none;
  color: #2C3478;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.3s;
  word-break: break-word;
  text-align: center;
}

.menu a:hover {
  color: #0066cc;
}

.btn {
  position: relative;
}

.btn::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  display: block;
  width: 0;
  height: 2.5px;
  background: #2C3478;
  transition: 0.3s;
}

.btn:hover:after {
  width: 100%;
}

.blockmen h2 {
  text-align: center;
  margin-bottom: 15px;
}


.blockmen h2 {
    text-align: center;
    margin-bottom: 15px;
}

.blockmenu ul  {
    display: block;
}

.blockmenu  {
    background: #f5f5f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px #2c3478;
    width: 50vh;
    flex-shrink: 0;
    position: sticky; /* Делает меню фиксированным при прокрутке */
    top: 20px; /* Прикрепляет меню к верхней части */
    
 }

 .blockmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    
}

.blockmenu ul li {
    margin: 5px 0;
    
}

.blockmenu ul li a {
    display: block;
    padding: 8px;
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    transition: background-color 0.3s;
    word-wrap: break-word; /* Разрешаем перенос слов на новую строку */
    white-space: normal;
}

.blockmenu ul li a:hover {
    background-color: #004080;
    color: white;
}

.blockmenu ul li a.active {
    background-color: #004080;
    color: white;
}

.content {
  flex-grow: 1;
  padding: 20px;
  background-color: #f5f5f8;
  border-radius: 10px;
  box-shadow: 0 4px 8px #2c3478;
  width: 100%;
  word-wrap: break-word;
}

.content a {
  white-space: normal;
}

.content h4 {
  margin: 0 10px;
  font-weight: bold;
  text-align: center;
}

.content-item {
  display: none;
}

.table,
.table__center,
.table__sleva {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #D9DCEB;
  border-radius: 5px;
  border-collapse: collapse;
  font-weight: 400;
  color: black;
}

.table th,
.table__center th,
.table__sleva th {
  padding: 10px;
  background: #f5f5f8;
  border: 1px solid #D9DCEB;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  word-wrap: break-word;
  word-break: normal;
}

.table td,
.table__center td,
.table__sleva td {
  padding: 10px;
  border: 1px solid #D9DCEB;
  border-radius: 5px;
  text-align: center;
  word-wrap: break-word;
  word-break: normal;
}

.table__sleva td {
  text-align: left;
}

.table__center td {
  text-align: center;
}

.table th,
.table td {
  width: 30%;
}

.table__center td {
  width: 25%;
}

.table__sleva td {
  width: 30%;
}

 /* ВТОРОЙ СТИЛЬ - КОМПАКТНЫЙ */
        .table-compact,
        .table__center-compact,
        .table__sleva-compact {
            width: auto;
            max-width: 80%;
            margin: 0 auto 15px;
            border: 1px solid #D9DCEB;
            border-radius: 4px;
            border-collapse: collapse;
            font-weight: 400;
            color: black;
            font-size: 14px;
        }

        .table-compact th,
        .table__center-compact th,
        .table__sleva-compact th {
            padding: 8px;
            background: #f8f9fa;
            border: 1px solid #D9DCEB;
            border-radius: 4px;
            font-weight: 600;
            text-align: center;
            word-wrap: break-word;
            word-break: normal;
            font-size: 13px;
        }

        .table-compact td,
        .table__center-compact td,
        .table__sleva-compact td {
            padding: 8px;
            border: 1px solid #D9DCEB;
            border-radius: 4px;
            text-align: center;
            word-wrap: break-word;
            word-break: normal;
        }

        .table__sleva-compact td {
            text-align: left;
        }

        .table__center-compact td {
            text-align: center;
        }

        .table-compact th,
        .table-compact td {
            width: auto;
        }

        .table__center-compact td {
            width: auto;
        }

        .table__sleva-compact td {
            width: auto;
        }

        /* Адаптивность для компактного стиля */
        @media (max-width: 768px) {
            .table-compact,
            .table__center-compact,
            .table__sleva-compact {
                max-width: 90%;
                font-size: 13px;
            }
            
            .table-compact th,
            .table__center-compact th,
            .table__sleva-compact th,
            .table-compact td,
            .table__center-compact td,
            .table__sleva-compact td {
                padding: 6px;
            }
        }

        @media (max-width: 480px) {
            .table-compact,
            .table__center-compact,
            .table__sleva-compact {
                max-width: 95%;
                font-size: 12px;
            }
            
            .table-compact th,
            .table__center-compact th,
            .table__sleva-compact th,
            .table-compact td,
            .table__center-compact td,
            .table__sleva-compact td {
                padding: 4px 5px;
            }
        }

.content-item h4 {
  font-weight: normal;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  color: black;
}

.block__title {
  letter-spacing: 2px;
  position: relative;
  padding: 0px 0px 0px 30px;
  cursor: pointer;
}

.block__title:before,
.block__title:after {
  content: '';
  width: 10px;
  height: 1px;
  background-color: #004080;
  position: absolute;
  top: 8px;
  transition: all 0.3s ease 0s;
}

.block__title:before {
  transform: rotate(40deg);
  left: 0;
}

.block__title:after {
  transform: rotate(-40deg);
  left: 8px;
}

.block__title.active:before,
.block__title.active:after {
  background-color: #004080;
}

.block__title.active:before {
  transform: rotate(-40deg);
}

.block__title.active:after {
  transform: rotate(40deg);
}

.block__text {
  display: none;
  padding: 0px 0px 0px 15px;
}

.card {
  display: flex;
  border: 2px solid #004080;
  border-radius: 10px;
  overflow: hidden;
  width: 96%;
  margin: 20px;
  align-items: top;
}

.image {
  width: 140px;
  height: 200px;
  aspect-ratio: 3/2; /* Соотношение сторон (ширина / высота) */
  object-fit: cover;
  border-radius: 8%;
    margin: 1%  1% 1% 1%;
  display: block;
  
}

.image img {
  width: 100%;
  height: 100%;
  border-radius: 4%;

}

.speciality-details {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.speciality-details h3 {
    color: #2C3478;
    margin-bottom: 15px;
}

.speciality-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.obrazovanie table tbody tr td:first-child {
    color: #2C3478;
    font-weight: 600;
}

.obrazovanie table tbody tr td:first-child:hover {
    text-decoration: underline;
    cursor: pointer;
}

.contento {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contento p {
  font-size: 18px;
  color: #2c3478;
  margin: 10px 0;
}

.footer {
  position: relative;
  background: #003670;
  color: white;
  overflow: hidden;
}

.footer__image-container {
  width: 100%;
  max-height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer__image {
  width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: cover;
  object-position: center bottom;
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer__column-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer__column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.footer__links a:hover {
  color: white;
  padding-left: 5px;
  text-decoration: underline;
}

.footer__bottom {
      margin-top: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer__version a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__version a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Мобильный аккордеон для футера */
.footer__mobile-accordion {
  display: none;
}

.footer__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer__accordion-title {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: white;
}

.footer__accordion-title::-webkit-details-marker {
  display: none;
}

.footer__accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer__accordion-icon::before,
.footer__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.footer__accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
}

.footer__accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 7px;
}

.footer__accordion-item[open] .footer__accordion-icon::after {
  transform: rotate(90deg);
}

.footer__accordion-content {
  padding: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__accordion-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__accordion-content a:hover {
  color: white;
  text-decoration: underline;
}

.main-btn {
  display: none;
  padding: 15px;
  background-color: #2C3478;
  color: white;
  font-size: 18px;
  border: none;
  text-align: center;
  cursor: pointer;
  width: 90%;
  margin-top: 20px;
  border-radius: 1px;
}

.button-container {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.main-btn:hover {
  background-color: #004080;
}

.achievement-notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: #2C3478;
            color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            z-index: 9999;
            transform: translateY(100px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        
        .achievement-notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        
        .achievement-icon {
            font-size: 24px;
            margin-right: 10px;
        }
        
        .achievement-text {
            font-size: 14px;
        }
        
        .achievement-title {
            font-weight: bold;
            margin-bottom: 5px;
        }

/* Медиа-запросы упорядочены от большего к меньшему */
@media (max-width: 1280px) {
  .footer__columns {
    justify-items: center;
    max-width: 1000px;
    margin-left: 0.3%;
  }
  
  .footer a {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    gap: 20px;
  }
  
  .blockmenu {
    width: 80%;
    position: static;
    border-radius: 0;
    padding: 10px 0;
    
  }

  .content {
    width: 100%;
    border-radius: 0;
    padding: 15px;
  }
  
  .blockmenu ul {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  
  .blockmenu ul li {
    width: 100%;
    text-align: center;
  }
  
  .blockmenu ul li a {
    width: 90%;
    margin: 0 auto;
    font-size: 14px;

  }
  
   .header__logo,
  .header__logoo {
    width: 70px;
    height: 70px;
  }
  
  .header__list {
    gap: 30px;
    font-size: 16px;
  }
  
  .header__nav {
    width: 72%;
  }
  

  .content h4 {
    font-size: 16px;
  }

  .content-item {
    padding: 10px;
  }

.content {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 15px;
        box-shadow: 0 4px 8px #2c3478;
        border-radius: 10px;
      }
      
      .content a {
        display: inline-block;
        margin: 5px 0;
        line-height: 1.4;
      }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 12px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 12px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
 

  .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует дочерние элементы по горизонтали */
    gap: 20px;
  }
  
  .card {
    margin: 18px;
  }
  
  
  .contento {
    padding: 18px;
  }
  
  .contento p {
    font-size: 15px;
  }
  
  .contento h2 {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .footer {
    background-size: cover;
    min-height: 500px;
  }
  
  .footer__container {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
  
  .burger {
    display: flex;
    margin-left: auto;
  }
  
  .menu {
    display: flex;
    border-radius: 15px 0 0 15px;
    position: fixed;
    top: 50px;
    right: -100%;
    width: auto;
    height: auto;
    max-height: 80vh;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu li {
    margin: 5px 0;
    flex-wrap: wrap;
  }
  
  .burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .container {
    padding: 0 15px;
  }

  .main-btn {
    display: block;
  }

  .btnnnn {
    display: none;
  }

  .content {
    padding: 15px;
    margin-top: 20px;
  }

  .content h4 {
    font-size: 16px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 12px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 12px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 20px;
  }

  .contento p {
    font-size: 14px;
  }
  
  .contento h2 {
    font-size: 18px;
  }
  

  
  .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 645px) {
  .header__logo,
  .header__logoo {
    width: 8vh;
    height: 8vh;
    margin-top: 10px;
  }
  
  .container {
    padding: 0 10px;
  }

  .button-container {
    display: block;
  }

  .btnnnn {
    display: none;
  }


  .content {
    padding: 10px;
    margin-top: 15px;
  }

  .content h4 {
    font-size: 13px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 10px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 10px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 15px;
  }

  .contento p {
    font-size: 12px;
  }
  
  .contento h2 {
    font-size: 15px;
  }
  

}

@media (max-width: 480px) {
  .header__logo,
  .header__logoo {
    width: 40px;
    height: 40px;
  }
    
  .header__list {
    gap: 1vh;
    font-size: 14px;
  }
  
  .container {
    padding: 0 10px;
  }

  .main-btn {
    display: block;
  }

  .btnnnn {
    display: none;
  }

  .blockmenu.open {
    display: block;
  }
  
  
  
  .content {
    padding: 10px;
    margin-top: 15px;
  }

  .content h4 {
    font-size: 13px;
  }

  .content-item {
    padding: 10px;
  }

  .content a {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .table,
  .table__center,
  .table__sleva {
    display: block;
    overflow-x: auto;
  }

  .table th,
  .table__center th,
  .table__sleva th {
    font-size: 10px;
  }

  .table td,
  .table__center td,
  .table__sleva td {
    font-size: 10px;
  }

  .table__sleva td,
  .table__center td {
    text-align: left;
  }
  
  .contento {
    padding: 15px;
  }

  .contento p {
    font-size: 12px;
  }
  
  .contento h2 {
    font-size: 15px;
  }
  
  .footer {
    padding: 30px 0 20px;
  }
  
  .footer__accordion-title {
    font-size: 15px;
  }
  
  .footer__accordion-content a {
    font-size: 13px;
  }
  

}
/* ========================================================================== */
/* FULL RESPONSIVE OVERRIDES — 2026                                           */
/* Слой адаптива без удаления исходных блоков и контента                      */
/* ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 280px;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 280px;
  overflow-x: clip;
  line-height: 1.5;
}

main,
.header,
.footer,
.container,
.content,
.content-item,
.blockmenu {
  min-width: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

main {
  width: 100%;
  padding: clamp(8px, 1vw, 20px) 0 clamp(24px, 2vw, 42px);
}

/* ----------------------------- ШАПКА ------------------------------------- */
.header {
  width: 100%;
  padding: 10px clamp(12px, 2vw, 36px);
  gap: clamp(8px, 1.2vw, 22px);
}

.header > div:first-child {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.header__logo,
.header__logoo {
  width: clamp(56px, 4.7vw, 90px);
  height: clamp(56px, 4.7vw, 90px);
  margin: 0;
  object-fit: contain;
}

.header__logo {
  margin-left: 0;
}

.header__nav {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.header__list {
  gap: clamp(10px, 1.15vw, 22px);
  margin: 4px 0;
  font-size: clamp(14px, 0.95vw, 19px);
  line-height: 1.25;
}

.header__list a {
  white-space: nowrap;
}

.navbar {
  flex: 0 0 auto;
  padding: 8px;
}

.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(44, 52, 120, 0.08);
  outline: none;
}

.icon-btn img {
  width: clamp(38px, 3vw, 52px) !important;
  height: auto !important;
  display: block;
}

/* -------------------------- ОСНОВНОЙ МАКЕТ ------------------------------- */
.container {
  width: min(calc(100% - clamp(24px, 3vw, 64px)), 1900px);
  max-width: 1900px;
  margin: 0 auto;
  padding: 0;
  gap: clamp(18px, 2vw, 38px);
  justify-content: stretch;
}

.blockmenu {
  flex: 0 0 clamp(290px, 20vw, 380px);
  width: auto;
  max-width: 100%;
  padding: clamp(14px, 1.2vw, 22px);
  top: 16px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.blockmenu ul {
  width: 100%;
}

.blockmenu ul li {
  width: 100%;
  margin: 3px 0;
}

.blockmenu ul li a {
  width: 100%;
  padding: 9px 10px;
  font-size: clamp(13.5px, 0.82vw, 17px);
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.content {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 1.45vw, 28px);
  overflow-wrap: anywhere;
}

.content-item {
  min-width: 0;
  max-width: 100%;
}

.content-item > * {
  max-width: 100%;
}

.content p,
.content-item {
  line-height: 1.65;
}

.content a {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content h4,
.content-item h4 {
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
}

.line-container {
  gap: 12px;
  min-width: 0;
}

.line-container h4,
.line-container strong {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Блок адреса + карта */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 32%);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
  width: 100%;
}

.cards > * {
  min-width: 0;
}

.cards iframe {
  width: 100% !important;
  height: clamp(330px, 30vw, 480px) !important;
  margin: 0;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* Аккордеоны */
.block__item {
  min-width: 0;
  max-width: 100%;
  margin: 10px 0;
}

.block__title {
  min-height: 24px;
  padding-left: 28px;
  padding-right: 4px;
  line-height: 1.45;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}

.block__title::before,
.block__title::after {
  top: 0.7em;
}

.block__text {
  min-width: 0;
  max-width: 100%;
  padding: 10px 0 0;
}

.program-docs {
  min-width: 0;
}

.program-docs a {
  overflow-wrap: anywhere;
}

/* ------------------------------ ТАБЛИЦЫ ---------------------------------- */
.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: 5px;
}

.table-scroll > table,
.table,
.table__center,
.table__sleva,
.table-compact,
.table__center-compact,
.table__sleva-compact {
  display: table !important;
  width: 100%;
  max-width: none;
  margin: 0;
  table-layout: auto;
}

.table th,
.table__center th,
.table__sleva th,
.table td,
.table__center td,
.table__sleva td,
.table-compact th,
.table__center-compact th,
.table__sleva-compact th,
.table-compact td,
.table__center-compact td,
.table__sleva-compact td {
  padding: clamp(7px, 0.7vw, 11px);
  font-size: clamp(12.5px, 0.75vw, 15px);
  line-height: 1.4;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

.table__center td,
.table__center th {
  text-align: center;
}

.table__sleva td,
.table__sleva th {
  text-align: left;
}

/* ------------------------- КАРТОЧКИ СОТРУДНИКОВ -------------------------- */
.card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  overflow: hidden;
}

.image {
  width: 140px;
  height: 190px;
  margin: 10px;
  aspect-ratio: auto;
  flex: none;
}

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

.contento {
  min-width: 0;
  padding: clamp(14px, 1.3vw, 22px);
}

.contento p {
  margin: 6px 0;
  font-size: clamp(14px, 0.9vw, 18px);
  overflow-wrap: anywhere;
}

.speciality-details {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ------------------------------- КАРУСЕЛИ ------------------------------- */
.carousel-container {
  width: 100%;
  max-width: 100%;
}

.carousel {
  height: clamp(230px, 31vw, 520px) !important;
  background: #e9ebf4;
}

.carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

.carousel-control {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.carousel-indicators {
  max-width: calc(100% - 100px);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------------------- ПАНЕЛЬ СЛАБОВИДЯЩИХ ----------------------------- */
.accessibility-panel {
  width: min(400px, 100vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw;
  padding: clamp(16px, 2vw, 22px) !important;
  box-sizing: border-box;
}

.theme-btn,
.font-btn,
.reset-btn,
.close-panel,
.toggle-switch,
.range-input {
  touch-action: manipulation;
}

/* -------------------------------- ФУТЕР ---------------------------------- */
.footer__container {
  width: min(100%, 1900px);
  max-width: 1900px;
  padding: clamp(28px, 2.5vw, 48px) clamp(16px, 2vw, 36px);
}

.footer__columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2vw, 38px);
}

.footer__column,
.footer__links {
  min-width: 0;
}

.footer a,
.footer__links a,
.footer__accordion-content a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.footer__image {
  display: block;
}

.footer__bottom {
  gap: 20px;
}

/* Прочие фиксированные элементы */
.achievement-notification {
  max-width: min(380px, calc(100vw - 32px));
}

.scroll-to-top {
  right: clamp(14px, 2vw, 30px) !important;
  bottom: clamp(14px, 2vw, 30px) !important;
}

/* ------------------------- НОУТБУКИ / ПЛАНШЕТЫ --------------------------- */
@media (max-width: 1280px) {
  .footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    justify-items: stretch;
  }

  .footer a {
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .header__nav {
    display: none;
  }

  .navbar {
    display: block;
    padding: 8px;
  }

  .burger {
    display: flex;
    margin-left: 0;
  }

  .menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -110vw;
    width: min(380px, 92vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 100px 18px 24px;
    border-radius: 18px 0 0 18px;
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    z-index: 950;
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    width: 100%;
    margin: 0;
    padding: 10px 6px;
  }

  .menu li::after {
    left: 0;
    bottom: 0;
    width: 100%;
  }

  .menu a {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
  }

  .container {
    width: min(calc(100% - 28px), 1120px);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .blockmenu {
    position: static;
    flex: none;
    width: 100%;
    max-height: none;
    padding: 14px;
    overflow: visible;
    border-radius: 10px;
  }

  .blockmenu ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
  }

  .blockmenu ul li {
    margin: 0;
  }

  .blockmenu ul li a {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 9px 10px;
    font-size: 14px;
  }

  .content {
    width: 100%;
    margin: 0;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards iframe {
    height: clamp(320px, 48vw, 460px) !important;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------ МОБИЛЬНЫЕ ------------------------------- */
@media (max-width: 768px) {
  .header {
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  .header__logo,
  .header__logoo {
    width: 54px;
    height: 54px;
  }

  .icon-btn img {
    width: 38px !important;
  }

  .container {
    width: calc(100% - 20px);
    padding: 0;
  }

  .content {
    margin-top: 0;
    padding: 14px;
  }

  .content-item {
    padding: 0;
  }

  .content h4,
  .content-item h4 {
    margin-inline: 0;
    padding-inline: 4px;
    font-size: 16px;
  }

  .blockmenu {
    padding: 10px;
  }

  .blockmenu ul li a {
    font-size: 13.5px;
  }

  .table-scroll {
    margin-bottom: 16px;
  }

  .table-scroll > table {
    min-width: 520px;
  }

  .table-scroll > table:has(tr > :nth-child(3)) {
    min-width: 640px;
  }

  .table-scroll > table:has(tr > :nth-child(4)) {
    min-width: 760px;
  }

  .table-scroll > table:has(tr > :nth-child(5)) {
    min-width: 900px;
  }

  .table th,
  .table__center th,
  .table__sleva th,
  .table td,
  .table__center td,
  .table__sleva td,
  .table-compact th,
  .table__center-compact th,
  .table__sleva-compact th,
  .table-compact td,
  .table__center-compact td,
  .table__sleva-compact td {
    padding: 7px 8px;
    font-size: 13px;
    text-align: left;
  }

  .carousel {
    height: clamp(220px, 48vw, 300px) !important;
  }

  .carousel-control {
    padding: 8px 11px !important;
    font-size: 18px !important;
  }

  .footer__columns {
    display: none;
  }

  .footer__mobile-accordion {
    display: block;
  }

  .footer__container {
    min-height: 0;
    padding: 26px 16px;
  }

  .footer {
    min-height: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .achievement-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .header {
    gap: 7px;
  }

  .header__logo,
  .header__logoo {
    width: 44px;
    height: 44px;
    margin-top: 0;
  }

  .navbar {
    padding: 5px;
  }

  .burger {
    width: 28px;
    height: 20px;
  }

  .icon-btn {
    padding: 5px;
  }

  .icon-btn img {
    width: 34px !important;
  }

  .menu {
    width: min(360px, 96vw);
    padding: 78px 14px 20px;
    border-radius: 14px 0 0 14px;
  }

  .blockmenu ul {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .blockmenu ul li a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .content {
    padding: 12px;
    box-shadow: 0 2px 7px rgba(44, 52, 120, 0.55);
  }

  .block__title {
    padding-left: 25px;
    letter-spacing: 0.2px;
    line-height: 1.4;
  }

  .cards iframe {
    height: 300px !important;
  }

  .card {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .image {
    width: 120px;
    height: 160px;
    margin: 0 auto;
  }

  .contento {
    padding: 12px;
  }

  .contento p {
    font-size: 14px;
  }

  .speciality-details {
    padding: 14px;
    border-radius: 12px;
  }

  .carousel {
    height: clamp(190px, 61vw, 250px) !important;
  }

  .carousel-control {
    min-width: 40px;
    min-height: 40px;
    padding: 6px 9px !important;
  }

  .carousel-indicators {
    bottom: 8px !important;
    gap: 5px;
    max-width: calc(100% - 80px);
  }

  .indicator {
    width: 8px !important;
    height: 8px !important;
  }

  .accessibility-panel {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .theme-options,
  .font-options {
    gap: 7px;
  }

  .theme-btn,
  .font-btn {
    flex: 1 1 120px;
    min-height: 42px;
  }

  .scroll-to-top {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 380px) {
  .header {
    padding-inline: 8px;
  }

  .header__logo,
  .header__logoo {
    width: 40px;
    height: 40px;
  }

  .icon-btn img {
    width: 31px !important;
  }

  .menu {
    width: 100vw;
    border-radius: 0;
  }

  .container {
    width: calc(100% - 12px);
  }

  .content,
  .blockmenu {
    border-radius: 8px;
  }

  .content {
    padding: 10px;
  }

  .blockmenu ul li a {
    font-size: 12.5px;
  }

  .carousel {
    height: 190px !important;
  }
}

/* --------------------------- ШИРОКИЕ / 2K ------------------------------- */
@media (min-width: 1920px) {
  .container {
    width: min(calc(100% - 72px), 1900px);
  }

  .blockmenu {
    flex-basis: 380px;
  }

  .content {
    padding: 30px;
  }

  .footer__container {
    padding-inline: 36px;
  }
}
