:root {
    --ddut-sidebar-width: 40%;
    --ddut-content-bg: #ffffff;
    --ddut-text: #111111;
    --ddut-muted: #9a9a9a;
    --ddut-blue: #69aaf3;
    --ddut-radius: 40px;
    --ddut-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ddut-content-bg);
    color: var(--ddut-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-layout {
    min-height: 100vh;
}

.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--ddut-sidebar-width);
    overflow: hidden;
    background: #e9eef4;
    z-index: 10;
}

.site-sidebar__image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.03)),
        url("/images/ddut/building.jpg") center / cover no-repeat;
}

.site-sidebar__title {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 20px 28px;
    background: rgba(0, 0, 0, .38);
    color: #fff;
    text-align: center;
    font-size: clamp(18px, 1.8vw, 27px);
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
}

.site-content {
    min-height: 100vh;
    margin-left: var(--ddut-sidebar-width);
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 102px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 7px 18px rgba(0,0,0,.10);
    position: sticky;
    top: 0;
    z-index: 20;
}

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

.site-header__menu ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px clamp(20px, 3vw, 50px);
    list-style: none;
}

.site-header__menu a {
    color: var(--ddut-muted);
    text-decoration: none;
    font-size: clamp(18px, 1.7vw, 25px);
    white-space: nowrap;
}

.site-header__menu .current > a,
.site-header__menu a:hover,
.site-header__menu a:focus {
    color: #111;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 0 0 auto;
}

.site-search-button,
.site-menu-button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-search-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 46px;
    line-height: 1;
    transform: rotate(-20deg);
}

.site-menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: #111;
}

.site-main {
    flex: 1 0 auto;
    padding: clamp(45px, 7vw, 90px) 8%;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 58px);
}

/*
 * home-cards — сюда в админке назначаются модули с карточками.
 * Пример карточки:
 *
 * <a class="ddut-card ddut-card--orange" href="/...">
 *   <span class="ddut-card__icon">!</span>
 *   <span class="ddut-card__title">Важная информация</span>
 * </a>
 */

.ddut-card {
    min-height: 200px;
    padding: 25px;
    border-radius: var(--ddut-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    color: #111;
    text-decoration: none;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ddut-card:hover,
.ddut-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--ddut-shadow);
}

.ddut-card__icon {
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1;
}

.ddut-card__title {
    max-width: 240px;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.15;
    font-weight: 700;
}

.ddut-card--orange {
    background: linear-gradient(180deg, #ffd9d9, #ffca8d);
}

.ddut-card--blue {
    background: linear-gradient(180deg, #cfe1ff, #d8f8f5);
}

.ddut-card--cyan {
    background: linear-gradient(180deg, #c1ffe1, #b9e8f7);
}

.ddut-card--violet {
    background: linear-gradient(180deg, #f0d8ff, #cdeaff);
}

.ddut-card--green {
    background: linear-gradient(180deg, #e4d9ff, #bdf5c4);
}

.ddut-card--yellow {
    background: linear-gradient(180deg, #fffbdc, #baf1f1);
}

.ddut-card--mint {
    background: linear-gradient(180deg, #e5d9ff, #c7f5bb);
}

.ddut-card--sky {
    background: linear-gradient(180deg, #d5e2ff, #d8f6f6);
}

.ddut-card--emerald {
    background: linear-gradient(180deg, #b7f1ed, #56eda0);
}

.component-area {
    margin-top: 55px;
}

.below-content {
    margin-top: 40px;
}

.site-footer {
    flex: 0 0 auto;
    min-height: 72px;
    background: var(--ddut-blue);
    color: #fff;
}

.site-footer__inner {
    min-height: 72px;
    padding: 12px 8%;
    display: flex;
    align-items: center;
}

.site-footer__inner .mod-menu,
.site-footer__inner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ddut-mobile-panel,
.ddut-search-panel {
    position: fixed;
    inset: 102px 0 0 0;
    z-index: 100;
    background: rgba(255,255,255,.98);
    padding: 35px 8%;
    overflow: auto;
}

.ddut-search-panel {
    inset: 0 0 auto 0;
    min-height: 102px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .10);
}

.ddut-search-panel[hidden] {
    display: none;
}

.ddut-search-panel__inner {
    flex: 1 1 auto;
}

.ddut-search-panel__inner form {
    margin: 0;
}

.ddut-search-panel__inner label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ddut-search-panel__inner input[type="text"],
.ddut-search-panel__inner input[type="search"] {
    width: 100%;
    padding: 12px 22px;
    font-size: 20px;
    border: 2px solid var(--ddut-blue);
    border-radius: 999px;
    outline: none;
}

.ddut-search-close {
    flex: 0 0 auto;
    margin-left: 20px;
    border: 0;
    background: transparent;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.ddut-mobile-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}

.ddut-mobile-panel a {
    color: #111;
    text-decoration: none;
    font-size: 25px;
}

@media (max-width: 1100px) {
    :root {
        --ddut-sidebar-width: 300px;
    }

    .site-header {
        padding-inline: 5%;
    }

    .site-main {
        padding-inline: 5%;
    }

    .site-header__menu ul {
        gap: 25px;
    }

    .site-header__menu a {
        font-size: 18px;
    }

    .home-grid {
        gap: 25px;
    }
}

@media (max-width: 800px) {
    :root {
        --ddut-sidebar-width: 0px;
    }

    .site-sidebar {
        position: relative;
        width: 100%;
        height: 260px;
    }

    .site-content {
        margin-left: 0;
    }

    .site-header {
        min-height: 78px;
        padding: 0 20px;
    }

    .site-header__menu {
        display: none;
    }

    .site-header__actions {
        margin-left: auto;
    }

    .site-main {
        padding: 35px 20px;
    }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        padding-inline: 20px;
    }

    .ddut-mobile-panel {
        inset: 78px 0 0 0;
    }
}

@media (max-width: 520px) {
    .site-sidebar {
        height: 220px;
    }

    .site-sidebar__title {
        padding: 16px;
        font-size: 18px;
    }

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

    .ddut-card {
        min-height: 170px;
    }

    .site-header__actions {
        gap: 12px;
    }

    .site-menu-button {
        width: 56px;
        height: 56px;
    }
}
.site-layout.no-sidebar-image .site-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    background: transparent;
}

.site-layout.no-sidebar-image .site-sidebar__title {
    position: relative;
    inset: auto;
    background: rgba(0, 0, 0, .85);
}

.site-layout.no-sidebar-image .site-content {
    margin-left: 0;
}
.btn-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
}

.btn-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px));
    gap: 0.5mm;
}

.btn-col-right {
    flex: 0 0 auto;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 1.5mm;
}
.my-btn img {
    display: block;
    width: 100%;
    height: auto;
}
.home-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    gap: 10px;              /* расстояние между кнопками */
    justify-content: start; /* start = слева, center = по центру */
}

.home-buttons a {
    display: block;
    line-height: 0;
}

.home-buttons img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .home-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.back-button {
    display: inline-block;
    margin-bottom: 25px;
}

.back-button img {
    display: block;
    width: 100%;
    max-width: 1300px;
    height: auto;
}
/* Страница результатов поиска: форма */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.component-area .collapse:not(.show) {
    display: none;
}

.component-area fieldset {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.component-area .input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.component-area input[name="q"] {
    flex: 1 1 260px;
    padding: 12px 22px;
    font-size: 18px;
    border: 2px solid var(--ddut-blue);
    border-radius: 999px;
    outline: none;
}

.component-area .btn {
    padding: 12px 26px;
    font-size: 16px;
    border: 2px solid var(--ddut-blue);
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    cursor: pointer;
}

.component-area .btn-primary {
    background: var(--ddut-blue);
    color: #fff;
}
/* Форма Visforms */
.ddut-form {
    max-width: 640px;
}

.ddut-form .form-group {
    margin-bottom: 22px;
}

.ddut-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.ddut-form .form-control {
    display: block;
    width: 100%;
    padding: 12px 22px;
    font-size: 18px;
    border: 2px solid var(--ddut-blue);
    border-radius: 999px;
    outline: none;
}

.ddut-form textarea.form-control {
    border-radius: 24px;
}

.ddut-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(105, 170, 243, .3);
}
/* Убираем левую колонку на телефонах, растягиваем контент и оставляем верхнее меню видимым */
@media (max-width: 768px) {
  .site-sidebar {
    display: none !important;
  }

  .site-layout {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }

  /* Возвращаем верхнее меню на телефонах */
  .site-header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
  }

  .site-header__menu {
    display: block !important;
    width: auto !important;
    max-width: 85% !important;
  }

  .site-header__menu ul,
  .site-header__menu .nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
.schedule-list {
  max-width: 98% !important;
}
/* Убираем лишние отступы у белой карточки с таблицей, чтобы таблица была широкой */
.schedule-day-content {
  padding: 10px 8px !important;
  max-width: 100% !important;
}

/* Делаем таблицу максимально широкой и сбрасываем старые размеры JCE */
.site-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  table-layout: auto !important;
}

.site-content table th,
.site-content table td {
  width: auto !important;
  height: auto !important;
  padding: 7px 5px !important;
  border: 1px solid #d1d5db !important;
  vertical-align: middle !important;
}

/* Делаем первый столбец (Наименование) шире остальных, чтобы текст не вытягивался в столбик */
.schedule-day-content.site-content table tr td:first-child,
.schedule-day-content.site-content table tr th:first-child {
  width: 24% !important;
  text-align: left !important;
}

/* Шапка таблицы */
.site-content table tr:first-child th,
.site-content table tr:first-child td {
  background-color: #f3f4f6 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Чередование строк */
.site-content table tr:nth-child(even) {
  background-color: #f9fafb;
}