.repair {
  padding: 60px 0 86px;
  background: linear-gradient(
    to bottom,
    rgb(168 215 255 / 0.05) 0%,
    rgb(255 194 36 / 0.09) 100%
  );
}

.repair .breadcrumb {
  background: transparent none repeat scroll 0 0;
  display: inline-block;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.repair .breadcrumb li {
  padding-right: 20px;
  position: relative;
  display: inline-block;
  z-index: 1;
  font-weight: 500;
  font-size: 18px;
}

.repair .breadcrumb li a {
  font-weight: 500;
  font-family: var(--topas63-default);
}

.repair .breadcrumb li::after {
  content: "\f105";
  font-family: "Font Awesome 5 Pro";
  font-weight: 500;
  right: 5px;
  position: absolute;
  line-height: 0;
  top: 50%;
  font-size: 14px;
  color: var(--topas63-gray);
  margin-top: 2px;
}

.repair .breadcrumb > li + li::before {
  content: "\f105";
  font-family: "Font Awesome 5 Pro";
  font-weight: 600;
  padding: 0 5px;
  color: var(--topas63-white);
  display: none;
}

.repair .breadcrumb li i {
  margin-right: 3px;
  font-weight: 100;
}

.repair .breadcrumb li:last-child::after {
  display: none;
}

.course-details__main-tab-box .tab-buttons {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 30px;
    height: 60px;
    /* width: 658px; */
    width: fit-content;
    border: 1px solid var(--topas63-bdr-color);
    padding: 3px 3px 3px;
    padding-right: 0;
    margin: 0px 0 0px;
}
.course-details__main-tab-box .tab-buttons .tab-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.maintenance-promo .list-unstyled {
    margin-top: 10px;
}

@media only screen and (max-width: 767px) {
    .course-details__main-tab-box .tab-buttons {
        height: auto;
        width: auto;
        padding: 15px 15px 15px;
        flex-direction: column;
    }
}

/* Стили для регламента обслуживания */
.maintenance-section {
    background-color: #fcfdfe;
}

.service-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 105, 154, 0.1);
}

.service-card__badge {
    background: var(--topas63-yel);
    color: #000;
    display: inline-block;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.badge-blue { background: var(--topas63-base); color: #fff; }
.badge-dark { background: #052143; color: #fff; }

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.service-card__list li::before {
    content: "•";
    color: var(--topas63-base);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-card__alert {
    margin-top: 20px;
    background: #fff9e6;
    border-left: 4px solid var(--topas63-yel);
    padding: 10px 15px;
    font-size: 14px;
}

/* Бокс с процедурой откачки */
.procedure-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e1e8ed;
}

.procedure-list {
    padding-left: 20px;
}

.procedure-list li {
    margin-bottom: 15px;
    font-size: 16px;
}

.info-note {
    background: #e7f3ff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.info-note i {
    font-size: 40px;
    color: #28a745;
    margin-bottom: 15px;
}

.info-note p {
    font-size: 14px;
    color: #052143;
    margin: 0;
}

@media (max-width: 768px) {
    .procedure-box { padding: 25px; }
}

/* Основная сетка галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 20px; /* Отступы между фото */
    padding-top: 40px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3; /* Пропорции 960x720 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы фото не искажалось */
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1); /* Легкий зум при наведении */
}

/* Слой при наведении (лупа) */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(29, 105, 154, 0.4); /* Ваш фирменный синий */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Модальное окно (Lightbox) */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none; /* Скрыто по умолчанию */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Показываем при активации через якорь # */
.gallery-modal:target {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 960px; /* Ширина вашего фото */
    width: 100%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid white;
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: default;
}

.btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    text-decoration: none;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность под мобильные */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }
}


/* Видео */
.video-container {
    background: #052143;
    border-radius: 15px;
    overflow: hidden;
}
.video-wrapper {    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.video-caption {
    padding: 15px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.intro-box p{
    margin-bottom: 10px;
}

/* Логика и Фазы */
.logic-card {
    background: #fff;
    border-radius: 10px;
}
.step {
    background: #f1f7ff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--topas63-base);
}
.step-arrow {
    align-self: center;
    color: #ced4da;
}

.phase-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.phase-header {
    padding: 15px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.phase-1 .phase-header { background: #1d699a; } /* Синий */
.phase-2 .phase-header { background: #052143; } /* Темный */

.phase-body {
    padding: 20px;
}
.phase-body ul {
    padding-left: 20px;
    margin-top: 10px;
    font-size: 15px;
}
.phase-body li {
    margin-bottom: 8px;
}

/* Таблица и увеличение (из прошлого ответа) */
.table-preview-wrapper {
    display: block;
    cursor: zoom-in;
    position: relative;
    border: 1px solid #eee;
}
.zoom-hint {
    position: absolute;
    bottom: 10px; right: 10px;
    background: var(--topas63-yel);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* КАЛЕНДАРЬ ТЕХОБСЛУЖИВАНИЯ */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    min-width: 1000px; /* Чтобы таблица не сжималась в кашу */
}

.calendar-table th, 
.calendar-table td {
    border: 1px solid #dee2e6;
    padding: 10px 5px;
    text-align: center;
    vertical-align: middle;
}

.calendar-table thead th {
    background-color: var(--topas63-base); /* Ваш синий */
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.calendar-table .sub-head th {
    background-color: #f1f7ff;
    color: var(--topas63-base);
    text-transform: none;
    font-size: 11px;
}

.calendar-table tbody td:first-child {
    background-color: #f8f9fa;
    font-weight: 700;
    text-align: left;
    padding-left: 15px;
    color: var(--topas63-black);
}

.calendar-table .highlight {
    background-color: #fffdf0; /* Легкий желтый для строк с активностью */
}

.calendar-table td:empty::after {
    content: "-";
    color: #ced4da;
}

.calendar-table b, .calendar-table strong {
    color: var(--topas63-primary);
}

/* Строка параметров (розовая/бежевая в оригинале) */
.calendar-table .params-row td {
    background-color: #f8d7da;
    font-size: 11px;
    line-height: 1.2;
    color: #721c24;
}

/* Заголовок годов */
.calendar-table .years-header td {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
    text-align: center !important;
}

/* ПРЕВЬЮ И УВЕЛИЧЕНИЕ */
.table-preview-wrapper {
    display: block;
    position: relative;
    text-decoration: none !important;
    color: inherit;
    border: 2px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(29, 105, 154, 0.8);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

/* МОДАЛЬНОЕ ОКНО (Pure CSS Lightbox) */
.table-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.table-modal:target {
    display: flex; /* Показываем при клике */
}

.modal-body {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto; /* Позволяет крутить таблицу, если она большая */
    position: relative;
    z-index: 10001;
}

.btn-close-table {
    display: inline-block;
    padding: 5px 15px;
    background: #f75700; /* Ваш оранжевый */
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
}

.modal-body {
    background: #fff;
    width: 95%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.btn-close-table {
    color: var(--topas63-primary);
    font-weight: bold;
    font-size: 18px;
}

.modal-close-area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
}

/* Карточки неисправностей */
.trouble-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.trouble-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.trouble-card__header {
    padding: 15px 20px;
    background: #1d699a;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trouble-card__header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: inherit;
    font-weight: 700;
}

.trouble-card__header i {
    font-size: 1.2rem;
}

.trouble-card__body {
    padding: 20px;
}

.trouble-card__body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Списки внутри карт */
.small-list, .tiny-list {
    padding-left: 20px;
    margin: 0;
}
.small-list li, .tiny-list li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Блоки советов */
.expert-box {
    background: #f1f7ff;
    border-radius: 15px;
    border-left: 5px solid #1d699a;
}

.solution-tip {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px dashed #1d699a;
}

.warning-box {
    background: #fff5f5;
    border-radius: 15px;
    border: 1px solid #ffe3e3;
}

/* Цвета шапок для разных типов проблем */
.bg-warning { background-color: #ffc107 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-info { background-color: #17a2b8 !important; }
.bg-secondary { background-color: #6c757d !important; }

.border-warning { border-color: #ffc107 !important; }
.border-danger { border-color: #dc3545 !important; }

/* Сетка для 4-х элементов */
.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3; /* Соотношение сторон 960x720 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
}

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

/* Эффект при наведении */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(29, 105, 154, 0.5); /* Фирменный синий */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 1.8rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox (Модальное окно) */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal:target {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 960px;
    width: 100%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border: 4px solid white;
    border-radius: 5px;
}

.modal-close-area {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
}

.btn-close {
    position: absolute;
    top: -45px; right: 0;
    color: white;
    font-size: 40px;
    text-decoration: none;
}

.text-center p{
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .gallery-grid-4 { grid-template-columns: 1fr; }
}

/* КАРТОЧКИ РЕМОНТА */
.repair-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e1e8ed;
    overflow: hidden;    transition: all 0.3s ease;
}

.repair-card:hover {
    box-shadow: 0 10px 25px rgba(29, 105, 154, 0.1);
}

.repair-card__top {
    padding: 20px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.repair-card__top i {
    font-size: 1.5rem;
    color: var(--topas63-base);
}

.repair-card__top h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.rank {
    background: var(--topas63-yel);
    color: #000;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.repair-card__body {
    padding: 20px;
}

.repair-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b778b;
    font-weight: 600;
}

.repair-list {
    list-style: none;
    padding: 0;
}

.repair-list li::before {
    content: "→";
    color: var(--topas63-base);
    margin-right: 8px;
}

/* ОСОБЫЙ БЛОК: ПОДТОПЛЕНИЕ */
.flooded-alert {
    background: #052143;
    color: #fff;
    border-radius: 15px;
    border: none;
}

.repair-price-note {
    font-style: italic;
    font-weight: 600;
    color: var(--topas63-base);
}

.alert h4{
    color: var(--topas63-yel);
}

/* ГАЛЕРЕЯ НА 9 ФОТО */
.gallery-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

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

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

@media (max-width: 992px) {
    .gallery-grid-9 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .gallery-grid-9 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

    .repair {
    padding: 10px 0 10px;
  }

  .repair .breadcrumb li {
    font-size: 14px;
  }
}