:root {
    --bs-villa-dg-rgb: 0, 90, 79; /* dark green 005a4f */
    --bs-villa-gr-rgb: 0, 129, 95; /* green 00815f */
    --bs-villa-lg-rgb: 135, 192, 136; /* light green 87c088 */
    --bs-villa-ly-rgb: 255, 253, 237; /* light yellow fffded */
    
    --bs-villa-dg: #005a4f; /* dark green 005a4f */
    --bs-villa-gr: #00815f; /* green 00815f */
    --bs-villa-lg: #87c088; /* light green 87c088 */
    --bs-villa-ly: #fffded; /* light yellow fffded */
    
    
    --bs-primary-rgb: 0, 90, 79; /* dark green 005a4f */
    --bs-secondary-rgb: 0, 129, 95; /* green 00815f */
    --bs-success-rgb: 135, 192, 136; /* light green 87c088 */
    /*--bs-villa-ly: 255, 253, 237;  light yellow fffded */
    
    --bs-link-color-rgb: 0, 129, 95;
    --bs-link-hover-color-rgb: 135, 192, 136;
    
    --bg-opacity: .45;
    
    
    --bg-body: #f3fcf0; /*#E8FCFF; #DEFFF9;*/
    /*--bg-card: white;*/
    --bg-nav: #005a4f; /*#362020;*/
    
}

/* 1. Полностью убираем системный скроллбар во всех браузерах 
html {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

html::-webkit-scrollbar {
  display: none; 
  width: 0 !important;
  height: 0 !important;
}
*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Навбар не уменьшится */
}


    /* Fix for absolute buttons inside Bootstrap fullscreen down layouts */
@media (max-width: 991.98px) {
  .modal-fullscreen-lg-down .modal-content {
    position: relative !important;
    height: 100vh !important; /* Forces the box to lock to mobile screen bounds */
    max-height: 100vh !important;
  }
}

/* Ensure your floating button sits above the header boundaries */
.modal-absolute-fixed-btn {
  position: absolute !important;
  top: 1rem;
  end: 1rem; /* alignment matches Bootstrap's right utility */
  background-color: #005a4f77;
  z-index: 1060 !important; /* Sits completely on top of Bootstrap elements (1055+) */
}







/* COLOR SECTION */
.bg-villa-ly { background-color: rgb(var(--bs-villa-ly-rgb)); }

/* FONTS SECTION 
.f-cg {
      font-family: "Century Gothic"; 
      src: url("assets/fonts/centurygothic.ttf") format("truetype"); 
}
.f-cg .fw-strong,
.f-cg .fw-bold,
.f-cg-bold {
      font-family: "Century Gothic Bold"; 
      src: url("assets/fonts/centurygothic-bold.ttf") format("truetype"); 
}
.f-czizh {
      font-family: "Czizh Body"; 
      src: url("assets/fonts/Czizh.ttf") format("truetype"); 
      font-style: italic;  
}
*/
#page-content {
 /*background: white;*/
 border-radius: 10px;
 padding: 10px 10px;
 min-height: 80vh;
}


@media screen and (max-width: 39.9375em) {
    #page-content {
        min-height: 0vh;
    }
}
/*
@media screen and (max-width:39.9375em) {
    #page-content {
        padding: 0 !important;
    }
}
*/

.bg-white-alpha {
    background-color: rgba(255,255,255, var(--bg-opacity) );
}

#page-content h2 {
    /*color: white;*/
    text-shadow: white 1px 0 5px;
}/*
#page-content.bg-white-alpha h2 {
    color: black !important;
}*/


/* GENERAL STYLING */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

body { 
    padding-top: 80px; 
    /*
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    */
}

body.parallax {
    position: relative;
    overflow-x: hidden;
    --parallax-offset: 0px;
}

body.parallax::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160%; /* чуть больше, чтобы не было пустот */
    background-image: url("/assets/misc/bg_nature4.jpg");
    /*
    background-color: #f3fcf0;
    background-color: var(--bg-body);
    */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translateY(calc(var(--parallax-offset) * -1));
    will-change: transform;
}

.section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}
.section-title {
    /* text-align: center!important; */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section-body {
  flex: 1;
}

.section:nth-child(even) {
    background-color: rgba(207, 249, 255, calc( var(--bg-opacity) - .3 ) );
}

.section:nth-child(odd) {
    /*background: #EBFFEF;*/
}

.section:last-child {
    border-radius: 0 0 10px 10px;
}


/* Нечётные секции — текст слева, картинка справа */
.section:nth-of-type(odd) .order-text {
  order: 1;
}
.section:nth-of-type(odd) .order-image {
  order: 2;
}

/* Чётные секции — картинка слева, текст справа */
.section:nth-of-type(even) .order-text {
  order: 2;
}
.section:nth-of-type(even) .order-image {
  order: 1;
}



.smooth-bg {
    background-color: rgba(255,255,255,.72);
    box-shadow: 0 0 30px 15px rgba(255,255,255,.90);
}


/*
.btn-villa {
    color: white !important;
    border-radius: 0;
    background-color: var(--bs-villa-gr);
    box-shadow: 2px 2px 10px 2px rgba(var(--bs-villa-dg-rgb), .6);
}
.btn-villa:hover {
    color: white;
    background-color: var(--bs-villa-dg);
}
.btn-villa:active {
    color: var(--bs-villa-dg) !important;
    background-color: var(--bs-villa-lg) !important;
}

.card-villa {
    border-radius: 0;
    box-shadow: 5px 5px 10px #04696133;
    background: rgba(255,255,255,.85);
}
*/


.list-clear {
	list-style: none;
	margin: 0;
	text-align: start;
}
.list-clear>li {
	margin: .25rem 0 .3rem -1.8rem;
	padding: .2rem .5rem;
}
.list-border {
	list-style: none;
	margin: 0;
	text-align: start;
	padding-left: 0;
}
.list-border>li {
	margin: .25rem 0 .3rem .5rem;
	padding: .2rem 1rem;
	
	border: 1px solid var(--bs-villa-dg);
	border-width: 0px;
	border-left-width: 8px;
}
.list-danger>li {
	border: 1px solid maroon;
	border-width: 0px;
	border-left-width: 8px;
}

.list-big {
	list-style: none;
	margin: 0;
}
.list-big li {
	margin: .25rem 0 .3rem -1.8rem;
	padding: .2rem .5rem;
}
.list-big li::before {
	content: "\025A0";
	padding-right: 10px;
	color: var(--bs-villa-dg);
}




.faq-item {
    border-bottom: 1px solid rgba(0,0,0,.15);
}

.faq-icon {
    font-size: 2.2rem;
    margin-right: 0.75rem;
    line-height: 1;
}

.dg-border {
	margin: .25rem 0 .3rem .5rem;
	padding: .2rem 1rem;
	
	border: 1px solid var(--bs-villa-dg);
	border-width: 0px;
	border-left-width: 8px;
}





/* FOOTER */
footer {
    margin-top: 80px; 
    background-color: rgba(255,255,255,.82);
    box-shadow: 0 0 30px 20px rgba(255,255,255,.90);
}
    
footer ul {
    list-style-type: none;
}

.filter-color-hover {filter: saturate(15%);}
.filter-color-hover:hover {filter: saturate(100%);}









.schedule-day:nth-child(even) {
  align-self: flex-end;
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    
    border-top: 1px solid #005a4f22;
}

.schedule-item .time {
    font-weight: bold;
    font-size: 1.1em;
    /*border-top: 1px solid #eee;*/
}

.schedule-item .title {
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .schedule-item {
        grid-template-columns: 1fr;
    }
    .schedule-item .time {
        font-size: 1em;
    }
}

a.title-red:hover {
    color: maroon !important;
}




/* разделитель для заголовков */
.separ {
  display: flex;
  align-items: center;
}

.separ::after {
  content: '';
  flex: 1;
  margin-left: 1rem;
  height: 1px;
  background: linear-gradient(to right, transparent, white);
  background-color: black;
  opacity: 0.3;
}

.separ::before {
  content: '';
  flex: 1;
  margin-right: 1rem;
  height: 1px;
  background: linear-gradient(to left, transparent, white);
  background-color: black;
  opacity: 0.3;
}






.pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--bs-villa-dg);
    transition: 0.25s;
}

.pill-icon.active,
.pill-icon:hover {
    background: var(--bs-villa-dg);
    color: white;
}


/* OVERRIDE */
.nav-link {
  --bs-nav-pills-link-active-bg: var(--bs-villa-dg);
  color: var(--bs-villa-dg);
}


.img-wrap {
    position: relative;
    overflow: hidden;
}

.img-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.75),
        rgba(255,255,255,0)
    );
    filter: blur(10px);
    pointer-events: none;
}

.img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0); /* старт — без затемнения */
    transition: background 0.35s ease;
    z-index: 2;                /* поверх картинки */
    pointer-events: none;
}

.card-hover {
    box-shadow: 2px 2px 8px -3px black;
}

.card-hover:hover .img-wrap::before {
    background: rgba(255,255,255,0.45);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* выше затемнения */
    pointer-events: none; /* чтобы клик шёл по ссылке */
}



/*
main .container-lg {
    background-color: rgb(var(--bs-villa-ly));
    box-shadow: 0 0 10px 20px rgb(var(--bs-villa-ly));
}
*/


.carousel-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* или 4/3, или 3/2 — выбери стиль */
    overflow: hidden;
    background: #000; /* чтобы не было белых полей */
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ключевой момент */
    object-position: center;
}





.gallery-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .2s ease;
}

.gallery-hover:hover .gallery-img {
    transform: scale(1.1);
}


.card-img-zoom {
    overflow: hidden;
}

.card-img-zoom img {
    transition: transform 0.35s ease;
    transform-origin: center center;
}

.card-img-zoom:hover img {
    transform: scale(1.07);
}





/*==================================== НАВБАР ====================================*/ 


/* Базовые стили навбара */
.custom-navbar {
  background-color: var(--bs-villa-dg);
  background-color: var(--bg-nav);
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
  transition: all 0.3s ease;
  z-index: 1050;
  height: 64px;
}

.custom-navbar .nav-link,
.custom-navbar .nav-phone {
    font-size: 1.2rem;
    color: white;
    font-weight: 100;
    /*font-family: "Century Gothic"; 
    src: url("assets/fonts/centurygothic.ttf") format("truetype"); */
}

.custom-navbar .nav-link:hover {
    text-decoration: none;
    color: white;
    text-shadow: 1px 1px 10px rgba(255,255,255,0.7);
}

.custom-navbar .navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Десктопные стили телефона */
.custom-navbar .nav-phone {
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Контейнер для ссылки и стрелки */
.custom-navbar .nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

/* Ссылка занимает максимум места, но оставляет пространство справа */
.custom-navbar .nav-link-wrapper .nav-link {
  flex-grow: 0;
}


/* десктоп */
@media (min-width: 1400px) {
    
    .custom-navbar .nav-item {
        padding-right: 15px;
    }
    
    .custom-navbar .nav-link-wrapper {
        display: block; /* Возвращаем стандартный поток */
    }
    
    .custom-navbar .dropdown-toggle::after {
        display: none !important; /* Убираем стрелки */
    }
    .custom-navbar .dropdown-menu {
        margin-top: 0;
        border: 1px solid #eee;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        
        line-height: 1.8;
        font-size: 13pt;
        
        
  /* Минимум анимации: быстрое появление через прозрачность */
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s linear, visibility 0.15s linear;
    }
    
    .custom-navbar .dropdown-item {
        padding-left: 1rem;
        padding-right: 2rem;
    }
    
    .custom-navbar .dropdown-item:hover {
        text-decoration: none;
        color:white;
        background-color: var(--bs-villa-gr);
    }
    
  /* Показываем меню при наведении на родительский li */
  .custom-navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Убираем зазор, чтобы мышка не «теряла» меню */
    opacity: 1;
    visibility: visible;
  }
}


/* Мобильное полноэкранное меню с размытием фона */
@media (max-width: 1399.98px) {
  .custom-navbar .navbar-collapse {
    position: fixed;
    top: 60px; /* Высота вашего навбара, скорректируйте при необходимости */
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto; /* Скроллится само меню */
    padding: 2rem 1.5rem;
    
    /* Эффект размытия сайта */
    background-color:  /*var(--bs-villa-dg);*/ rgba(0, 90, 79, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center;
    text-align: start;
  }
  
  .custom-navbar .navbar-collapse.collapsing {
    transition: none !important; 
    height: calc(100vh - 60px) !important; /* Сразу задаем финальную высоту */
    display: block !important; /* Не даем элементу скрываться во время переключения классов */
  }
  
  .custom-navbar .nav-link-wrapper .nav-link {
    padding-right: 40px; /* Чтобы текст не налезал на стрелку */
  }

  .custom-navbar .navbar-nav {
    width: 100%;
    margin-bottom: 2rem !important;
  }

  .custom-navbar .nav-item {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  /* Раскрытие подпунктов на мобильных */
  .custom-navbar .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: start;
    padding: 0;
  }
  
  .custom-navbar .dropdown-item {
    background: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    padding-left: 2rem;
    color: white;
    text-wrap: auto;
  }
  
/* Стрелка-триггер на мобильных */
  .custom-navbar .submenu-trigger {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px; /* Ширина кликабельной зоны */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Стрелка прижата к правому краю */
    color: white;
    cursor: pointer;
    z-index: 2;
  }
  
  .custom-navbar .submenu-trigger i {
    transition: transform 0.3s ease;
  }
  
  /* Класс анимации стрелки при активации */
  .custom-navbar .submenu-trigger.active i {
    transform: rotate(180deg);
  }

  /* По умолчанию скрываем подменю на мобильных, пока нет класса show */
  .custom-navbar .nav-item.dropdown .dropdown-menu {
    display: none;
  }
  .custom-navbar .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }
}



/*========== Содержимое программы ===========*/
#price-table th, #price-table td {
    align-content: center;
    text-align: center;
}



/*========== Список цен процедур ===========*/

.table-villa {
    border: 1px solid #ddd;
    overflow: hidden;
    border-radius: .5rem;
    padding: 0;
    line-height: 2;
}

.table-villa table {
    margin: 0;
}

.table-villa table thead {
    border-color: var(--bs-villa-dg);
}


.table-villa table thead th {
    color: white;
    border-color: var(--bs-villa-dg) !important;
    background-color: var(--bs-villa-dg);
}

.table-villa tr.subheader td {
    font-weight: bold;
    text-align: center;
    border-color: var(--bs-villa-lg) !important;
    background-color: var(--bs-villa-lg);
    line-height: 1.2 !important;
    padding: 1rem !important;
}



#program-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#program-table th,
#program-table td {
    padding: 6px 10px;
    text-align: center;
    /*border-bottom: 1px solid rgba(0,0,0,.15);*/
}

#program-table .cell-title {
    text-align: start;
}

#program-table .separator td {
    padding: 0;
    border-bottom: 1px solid #666;
}


#program-table tr:last-child {
    border-bottom: none;
}

 #program-table .tc-value {
     min-width: 80px;
 }
 

 #program-table .subheader {
     border: none;
 }

/* 2. Remove top border from the first row */
 #program-table  tr:first-child th,
 #program-table  tr:first-child td {
  border-top: none;
}

/* 3. Remove bottom border from the last row */
 #program-table  tr:last-child td {
  border-bottom: none;
}

/* 4. Remove left border from the first cell of every row */
 #program-table  td:first-child, 
 #program-table  th:first-child {
  border-left: none;
}

/* 5. Remove right border from the last cell of every row */
 #program-table  td:last-child, 
 #program-table  th:last-child {
  border-right: none;
}





   
/* Контейнер мобильной версии */
.program-mobile {
    background-color: rgb(255,255,255, 60%);
    padding: 0;
}

/* Заголовок блока */
.pm-block {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 16px 0;
    text-align: center;
    color: white;
    border-bottom: 1px solid #e0e0e0;
    background-color: var(--bs-villa-dg);
}

/* Заголовок процедуры (внутри первой карточки) */
.pm-title-main {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.35;
}

/* Карточка сегмента */
.pm-card {
    background: white;
    padding: 12px;
    margin: 8px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Строка варианта процедуры */
.pm-item-row {
    padding: 4px 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Разделитель внутри карточки */
.pm-hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid var(--bs-villa-dg);
}

/* Таблица количеств */
.pm-amt-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95rem;
}

.pm-period {
    color: #666;
}

.pm-val {
    font-weight: 600;
}

/* Разделитель между процедурами / блоками */
.pm-separator {
    height: 1px;
    background: #aaa;
    margin: 10px 10px 25px;
}

.pm-separator:last-child {
    display: none;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
    .pm-title-main {
        font-size: 0.95rem;
    }
    .pm-item-row {
        font-size: 0.9rem;
    }
    .pm-amt-row {
        font-size: 0.9rem;
    }
}



.img-square {
    width: 100%; /* Set equal width and height */
    height: auto;
    /*max-width: 350px;*/
    
    object-fit: cover; /* Prevents the image from distorting */
    border-radius: 10%; /* Makes the image a perfect circle */
    
    /* The mask handles the smooth transparency fade at the edges */
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
    
    mix-blend-mode: multiply; 
}

/*
.bg-white-alpha {
    background-color: var(--bg-card);
}
*/


/*anchor scroll fix*/
[id] {
  scroll-margin-top: 80px; 
}



ul.list-intervals {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Расстояние между элементами li */
}









/* ============================================
   Лечебный профиль
   ============================================ */

.medprofile-shell {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}


/* Общая поверхность страницы */
.medprofile-panel,
.medprofile-item,
.medprofile-contra {
    background: rgba(255, 255, 255, .84);

    border: 0;
    border-radius: 1.25rem;

    box-shadow:
        0 6px 20px rgba(0, 90, 79, .08),
        0 0 30px rgba(255, 255, 255, .38);
}


/* Вступительный блок */
.medprofile-intro {
    overflow: hidden;
}


/* =========================
   Аккордеон
   ========================= */

.medprofile-accordion {
    width: 100%;
}

.medprofile-item {
    overflow: hidden;
}

.medprofile-item .accordion-header {
    margin: 0;
}

.medprofile-item .accordion-button {
    min-height: 76px;
    padding: 1.1rem 1.5rem;

    border: 0;
    background: rgba(255, 255, 255, .78);

    color: var(--bs-villa-dg);

    font-size: 1.12rem;
    font-weight: 600;

    box-shadow: none;
}

.medprofile-item .accordion-button:not(.collapsed) {
    background: rgba(var(--bs-villa-lg-rgb), .22);
    color: var(--bs-villa-dg);

    box-shadow: none;
}

.medprofile-item .accordion-button:hover {
    background: rgba(var(--bs-villa-lg-rgb), .18);
}


/* Явный фокус для клавиатурной навигации */
.medprofile-item .accordion-button:focus-visible {
    outline: 3px solid var(--bs-villa-gr);
    outline-offset: -3px;

    box-shadow: none;
}


/* =========================
   Иконка направления
   ========================= */

.medprofile-icon {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    margin-right: 1rem;
    padding: 9px;

    border-radius: 50%;

    color: var(--bs-villa-dg);
    background: rgba(var(--bs-villa-lg-rgb), .20);
}

.medprofile-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.medprofile-title {
    line-height: 1.25;
}


/* Раскрытое содержимое */
.medprofile-item .accordion-body {
    padding: .6rem 1.75rem 1.6rem;
}

.medprofile-item .accordion-body ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.medprofile-item .accordion-body li {
    margin-bottom: .55rem;
    line-height: 1.45;
}


/* =========================
   Мобильная версия
   ========================= */

@media (max-width: 575.98px) {

    .medprofile-shell {
        padding-left: .25rem;
        padding-right: .25rem;
    }

    .medprofile-intro > div {
        padding: 1.25rem !important;
    }

    .medprofile-item .accordion-button {
        min-height: 68px;
        padding: .9rem 1rem;

        font-size: 1rem;
    }

    .medprofile-icon {
        width: 40px;
        height: 40px;

        margin-right: .75rem;
        padding: 8px;
    }

    .medprofile-item .accordion-body {
        padding:
            .4rem 1.1rem
            1.25rem;
    }
}











/* =====================================
   Современные методики диагностики
   и лечения
   ===================================== */


/* ---------- Вступительный блок ---------- */

.equipment-hero {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.equipment-hero-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;

    background: rgba(255, 255, 255, .72);
    border-radius: 1.25rem;

    box-shadow:
        0 0 30px 12px rgba(255, 255, 255, .70);
}


/* ---------- Группы: физиотерапия / диагностика ---------- */

.equipment-group {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.equipment-group + .equipment-group {
    margin-top: 5rem;
}

.equipment-group-header {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.equipment-group-header h2 {
    margin-bottom: .75rem;
}

.equipment-group-header p {
    line-height: 1.55;
}


/* ---------- Отдельная единица оборудования ---------- */

.equipment-item {
    position: relative;

    width: 100%;
    padding: 3.5rem 0;

    overflow: hidden;
}


/* Чередующиеся мягкие фоны */

.equipment-item:nth-of-type(odd) {
    background: rgba(207, 249, 255, .58);
}

.equipment-item:nth-of-type(even) {
    background: rgba(255, 255, 255, .65);
}


/* ---------- Текст ---------- */

.equipment-text {
    align-content: center;
}

.equipment-text h3 {
    color: var(--bs-villa-dg);
}

.equipment-lead {
    line-height: 1.5;
}

.equipment-description {
    line-height: 1.65;
}

.equipment-description p:last-child {
    margin-bottom: 0;
}

.equipment-description ul {
    margin-bottom: 1rem;
}


/* ---------- Изображение ---------- */

.equipment-image {
    align-content: center;
}

.equipment-photo {
    display: block;

    width: 100%;
    max-height: 430px;

    margin-left: auto;
    margin-right: auto;

    object-fit: contain;
    object-position: center;

    border-radius: 1rem;

    background: rgba(255, 255, 255, .72);

    box-shadow:
        0 8px 24px rgba(0, 90, 79, .12);
}


/* ---------- Чередование текста и изображения ---------- */

@media (min-width: 992px) {

    .equipment-item:nth-of-type(odd) .order-text {
        order: 1;
    }

    .equipment-item:nth-of-type(odd) .order-image {
        order: 2;
    }

    .equipment-item:nth-of-type(even) .order-text {
        order: 2;
    }

    .equipment-item:nth-of-type(even) .order-image {
        order: 1;
    }
}


/* ---------- Планшеты и мобильные ---------- */

@media (max-width: 991.98px) {

    .equipment-group + .equipment-group {
        margin-top: 3.5rem;
    }

    .equipment-item {
        padding: 2.5rem 0;
    }

    /* На мобильном всегда:
       заголовок/текст -> изображение */

    .equipment-text {
        order: 1 !important;
    }

    .equipment-image {
        order: 2 !important;
    }

    .equipment-photo {
        max-height: 360px;
    }
}


/* ---------- Маленькие экраны ---------- */

@media (max-width: 575.98px) {

    .equipment-hero-text {
        padding: 1rem 1.1rem;
        border-radius: 1rem;
    }

    .equipment-group-header {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .equipment-group + .equipment-group {
        margin-top: 3rem;
    }

    .equipment-item {
        padding: 2rem 0;
    }

    .equipment-text h3 {
        font-size: 1.5rem !important;
    }

    .equipment-lead {
        font-size: 1.05rem !important;
    }

    .equipment-description {
        line-height: 1.55;
    }

    .equipment-photo {
        max-height: 300px;
        border-radius: .75rem;
    }
}





/* ==========================================================
   Лечебно-оздоровительное отделение
   ========================================================== */


/* ----------------------------------------------------------
   Общий контейнер
   ---------------------------------------------------------- */

.loo-page {
    width: 100%;
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}


/* ----------------------------------------------------------
   Вступление
   ---------------------------------------------------------- */

.loo-hero {
    margin-bottom: 4rem;
}

.loo-intro {
    max-width: 1050px;

    margin-left: auto;
    margin-right: auto;

    padding: 1.75rem 2rem;

    line-height: 1.65;

    background: rgba(255, 255, 255, .86);

    border-radius: 1.25rem;

    box-shadow:
        0 6px 22px rgba(0, 90, 79, .08),
        0 0 24px rgba(255, 255, 255, .38);
}


/* ----------------------------------------------------------
   Смысловые направления
   ---------------------------------------------------------- */

.loo-item {
    position: relative;

    margin-bottom: 1.25rem;

    padding:
        3.5rem
        2.5rem;

    border-radius: 1.25rem;

    overflow: hidden;
}


/*
 * Чередование фона.
 * Прозрачность можно спокойно корректировать
 * под конкретный фон страницы.
 */

.loo-item:nth-of-type(odd) {
    background:
        rgba(207, 249, 255, .50);
}

.loo-item:nth-of-type(even) {
    background:
        rgba(255, 255, 255, .78);
}


/* ----------------------------------------------------------
   Текст
   ---------------------------------------------------------- */

.loo-text {
    align-content: center;
}

.loo-text h2 {
    color: var(--bs-villa-dg);

    line-height: 1.25;
}

.loo-text p {
    line-height: 1.65;
}

.loo-lead {
    line-height: 1.5 !important;
}


/* ----------------------------------------------------------
   Изображения
   ---------------------------------------------------------- */

.loo-image {
    align-content: center;
}

.loo-photo {
    display: block;

    width: 100%;
    height: 380px;

    margin-left: auto;
    margin-right: auto;

    object-fit: cover;
    object-position: center;

    border-radius: 1.25rem;

    background:
        rgba(255, 255, 255, .6);

    box-shadow:
        0 10px 28px rgba(0, 90, 79, .14);
}


/* ----------------------------------------------------------
   Чередование текста / изображения на desktop
   ---------------------------------------------------------- */

@media (min-width: 992px) {

    .loo-item:nth-of-type(odd) .order-text {
        order: 1;
    }

    .loo-item:nth-of-type(odd) .order-image {
        order: 2;
    }


    .loo-item:nth-of-type(even) .order-text {
        order: 2;
    }

    .loo-item:nth-of-type(even) .order-image {
        order: 1;
    }

}


/* ----------------------------------------------------------
   Галерея
   ---------------------------------------------------------- */

.loo-gallery {
    margin-top: 4rem;

    padding:
        2rem
        1rem
        1rem;
}

.loo-gallery-header {
    margin-bottom: 1.5rem;
}

.loo-gallery-grid a {
    display: block;

    overflow: hidden;

    border-radius: .75rem;
}

.loo-gallery-grid img {
    display: block;

    width: 100%;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.loo-gallery-grid a:hover img {
    transform: scale(1.035);

    box-shadow:
        0 8px 22px rgba(0, 90, 79, .18);
}


/*
 * Не полагаемся только на hover:
 * клавиатурный пользователь тоже должен видеть фокус.
 */

.loo-gallery-grid a:focus-visible {
    outline:
        3px solid var(--bs-villa-gr);

    outline-offset: 3px;
}


/* ----------------------------------------------------------
   Планшет
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {

    .loo-hero {
        margin-bottom: 3rem;
    }

    .loo-item {
        padding:
            2.5rem
            1.75rem;
    }


    /*
     * На небольших экранах порядок всегда одинаковый:
     * сначала текст, затем фотография.
     */

    .loo-text {
        order: 1 !important;
    }

    .loo-image {
        order: 2 !important;
    }


    .loo-photo {
        height: 340px;
    }

}


/* ----------------------------------------------------------
   Мобильные
   ---------------------------------------------------------- */

@media (max-width: 575.98px) {

    .loo-hero {
        margin-bottom: 2.5rem;
    }

    .loo-intro {
        padding:
            1.25rem
            1.1rem;

        border-radius: 1rem;
    }


    .loo-item {
        margin-bottom: .85rem;

        padding:
            2rem
            1rem;

        border-radius: 1rem;
    }


    .loo-text h2 {
        font-size: 1.5rem !important;
    }


    .loo-lead {
        font-size: 1.05rem !important;
    }


    .loo-photo {
        height: 260px;

        border-radius: .9rem;
    }


    .loo-gallery {
        margin-top: 2.5rem;

        padding:
            1rem
            .25rem;
    }

}




























