/* ===================================================================== */
/* ===============  ГЛОБАЛЬНЫЕ НАСТРОЙКИ САЙТА  ======================== */
/* ===================================================================== */

/* Фон + основной шрифт для всего сайта */
html, body {
  background-color: #F5EEE6 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Чтобы фон совпадал и внутри контейнеров Quarto */
body, .content, main, .page-layout, .page-content {
  background-color: #F5EEE6 !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  color: #2A2F45 !important;
}

/* ===================================================================== */
/* ======================   ШАПКА / НАВБАР  ============================ */
/* ===================================================================== */

.navbar {
  background-color: #F5EEE6 !important;
  color: #2A2F45 !important;

  height: 72px;
  padding: 0 3rem !important;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: none !important;

  position: relative; /* важно */
}

/* Логотип / название слева */
.navbar-brand {
  background: none;
  color: #2A2F45 !important;

  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  
  white-space: nowrap;
  overflow: visible;
}

/* Контейнер меню справа */
.navbar-nav {
  position: absolute;
  top: 26px;
  right: 3rem;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;

  margin: 0;
  padding: 0;
}

/* Пункты меню */
.navbar-nav .nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2A2F45 !important;

  padding: 0;
  line-height: 1;
}

.navbar-nav .nav-link:hover {
  color: #1a1d33 !important;
}

/* ===================================================================== */
/* ======================  ГЛАВНЫЙ ЭКРАН  =============================== */
/* ===================================================================== */

/* Обёртка текста и картинки */
.intro-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

/* Левый блок с текстом */
.intro-text {
  flex: 0 0 80%;
  max-width: 600px;
  padding: 0 0 16px 0;
  background: transparent;
  border: none;
  color: #2A2F45;

  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Заголовок внутри блока */
.intro-text h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

/* Основной текст */
.intro-text p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Правая колонка под картинку */
.intro-images {
  flex: 0 0 20%;
  max-width: 800px;
  display: flex;
  justify-content: flex-start;
}

/* Картинка справа */
.intro-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-top: -40px;
}

.intro-images {
  flex: 0 0 40%;     /* сделать колонку шире — картинка уйдёт правее */
  justify-content: flex-end; /* прижать к правому краю */
  padding-left: 40px; /* дополнительный сдвиг */
}


/* "Подробнее о проекте" — текстовая ссылка */
.btn-main {
  background: none;
  color: #2A2F45 !important;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 24px;
}

.intro-text p {
  text-align: right ;        /* выравнивание по ширине */
  text-indent: 0em;         /* красная строка */
  margin-bottom: 0em;       /* расстояние между абзацами */
}
.intro-text {
  flex: 0 0 65%;     /* текст намного шире */
  max-width: none;   /* снимаем ограничение 600px */
}

.intro-images {
  flex: 0 0 35%;     /* картинка будет уже */
  justify-content: center;  
}


.btn-main:hover {
  color: #1a1d33 !important;
}

/* ===================================================================== */
/* ======================  ЛОГОТИПЫ В ЦЕНТРЕ  ========================== */
/* ===================================================================== */

.logos {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 160px 0 40px 0;  /* 🔥 увеличил верхний отступ */
}

.logos-img {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.intro-text h1 {
  text-align: right !important;
}

.navbar-search {
  display: none !important;
}

hr {
  display: none !important;
}



/* ===================================================================== */
/* ======================  АДАПТИВ  ==================================== */
/* ===================================================================== */

@media (max-width: 1000px) {
  .navbar {
    padding: 1.2rem 2rem !important;
  }

  main.content {
    padding: 0 2rem;
  }

  .intro-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .intro-text,
  .intro-images {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

body.project-page p {
  text-align: justify;
  margin-bottom: 1.6em;
  line-height: 1.7;
}

.small-left-img {
  float: left;            /* картинка уходит влево */
  width: 300px;           /* размер картинки — можно менять */
  margin-right: 20px;     /* отступ справа */
  margin-bottom: 10px;    /* небольшой нижний отступ */
  border-radius: 8px;     /* красивое скругление */
}
.small-left-img {
  max-width: 35%;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ ТАБЛИЦ ===== */

table,
thead,
tbody,
tr,
th,
td {
  background-color: #F5EEE6 !important; /* тот же цвет, что и фон сайта */
  color: #2A2F45 !important;
  border-color: #dcd2cb !important;     /* мягкие светлые линии */
}

/* Лёгкие линии между строками */
tbody tr td {
  border-bottom: 1px solid #dcd2cb !important;
}

/* Заголовки таблицы немного жирнее */
thead th {
  font-weight: 700;
  border-bottom: 2px solid #d6cec6 !important;
}

/* Первый столбец — текст, выравнивание слева */
table th:first-child,
table td:first-child {
  text-align: left !important;
}

/* Остальные столбцы (числа) — по центру */
table th:not(:first-child),
table td:not(:first-child) {
  text-align: center !important;
}

/* Заголовок перед таблицей на странице database */
h1.db-table-title {
  font-size: 1.3rem;    /* сделай поменьше / побольше по вкусу */
  font-weight: 600;     /* чуть менее жирный, чем обычный */
}

/* Две кнопки в колонках */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Стиль самих кнопок */
.download-btn {
  display: block;
  text-align: center;
  background-color: #BEBFB4;
  color: #2A2F45 !important;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: 0.2s ease-in-out;
  border: 1px solid #a9a99f;
}

.download-btn:hover {
  background-color: #aead9f;
  color: #1a1d33 !important;
}

/* Мобильная версия (кнопки одна под другой) */
@media (max-width: 700px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}
/* Блок формы */
.request-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  margin-top: 40px;
  color: #2A2F45;
}
.request-form {
  background-color: #BEBFB4;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: 40px auto;
}

/* Группы полей */
.request-form .form-group {
  margin-bottom: 20px;
}

/* Заголовки полей */
.request-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;      /* уменьшенный размер */
  margin-bottom: 4px;
  color: #2A2F45;
}

/* Текстовые поля */
.request-form input,
.request-form textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #9ba9b6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  box-sizing: border-box;
}

/* Кнопка */
.form-submit-btn {
  width: 100%;
  background-color: #2A2F45;
  color: #F5EEE6;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.form-submit-btn:hover {
  background-color: #2A2F45;
}

/* Картинка слева */
.img-left {
  float: left;
  width: 140px;               /* размер можно менять */
  margin-right: 20px;
  margin-bottom: 10px;
}

/* Картинка справа */
.img-right {
  float: right;
  width: 140px;
  margin-left: 20px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {

  .request-form {
    padding: 20px;
    margin: 20px 0;
  }

  .request-title {
    font-size: 1.5rem;
    margin-top: 20px;
  }

  .form-submit-btn {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}

/* Центрирование текста на странице apps */
body.apps-page {
  text-align: center;
}

/* Заголовок */
.apps-title {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Подразделы (Оценка возраста / пола) */
.apps-subtitle {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Активные ссылки */
.app-link {
  display: inline-block;
  margin: 8px 0 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: #BEBFB4 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-link:hover {
  color: #2A2F45 !important;
}

body.apps-page {
  text-align: center;   /* если хочешь центрировать всю страницу */
  color: #2A2F45;       /* основной цвет текста */
}

body.apps-page h1 {
  text-align: center;   /* заголовок по центру */
}

body.apps-page a {
  color: #2A2F45 !important; /* ссылки тоже в этом цвете */
}
body.apps-page * {
  font-size: 0.9rem !important;
}

.site-footer {
  width: 100%;
  padding: 12px 0;
  margin-top: 40px;

  font-size: 0.9rem;
  color: #2A2F45;
  background-color: transparent;

  border-top: 1px solid #dcd2cb;

  display: flex;
  justify-content: center;   /* всё в одну линию и по центру */
  align-items: center;
  gap: 14px;                 /* расстояние между элементами */
  flex-wrap: nowrap;         /* ❗ запрещаем перенос строки */
  white-space: nowrap;       /* ❗ запрещаем перенос текста */
}








