/* =====================================================================
   МКБ «Танкоград» — тема 2026 (тёмная, современная)
   Подключается ПОСЛЕ styles.css:
     <link rel="stylesheet" href="styles.css" />
     <link rel="stylesheet" href="styles-2026.css" />
   Разметку страниц менять не нужно: тема переопределяет существующие
   классы. Фирменный зелёный сохранён (--accent: #72876a).
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&family=Golos+Text:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --text: #1a2018;
  --muted: #5a6560;
  --accent: #72876a;
  --accent-2: #4a5744;
  --accent-mid: #8a9f82;
  --border: #dde2d7;

  --ink: #171c14;
  --ink-soft: #eef1ea;
  --line-soft: #eef1ea;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------ Шапка ------------------------------ */

.site-header {
  background: rgba(23, 28, 20, 0.97);
  padding: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
  width: min(1280px, 94vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  padding: 12px 0;
}

/* Логотип + компактное название вместо длинного заголовка */
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.branding::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 34px;
  background: url("images/logo-mark.png") center / contain no-repeat;
}

/* Полное название остаётся в разметке (для SEO и скринридеров),
   а в шапке показываем короткое «ТАНКОГРАД» + подпись института. */
.branding h1 {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.branding::after {
  content: "ТАНКОГРАД";
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}

.branding p {
  display: none;
}

.site-nav {
  margin-top: 0;
  gap: 24px;
}

.site-nav-public {
  gap: 24px;
}

.site-nav a {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.active {
  background: none;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.site-nav a[data-auth-link="auth"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
}

.site-nav a[data-auth-link="auth"]:hover {
  background: #e4eadf;
  color: var(--ink);
}

.site-nav a[data-auth-link="auth"].active {
  border-bottom: 0;
}

.role-line {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ------------------- Боковое меню кабинета ------------------- */

.site-user-nav-bar {
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-nav-user-menu a {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  padding: 11px 12px;
}

.site-nav-user-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.site-nav-user-menu a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-nav-user-menu a[data-auth-link="logout"] {
  background: transparent;
  border: 0;
  color: #d9a3a3;
}

.site-nav-user-menu a[data-auth-link="logout"]:hover {
  background: rgba(217, 163, 163, 0.12);
}

/* ------------------------------ Сетка ------------------------------ */

.container {
  width: min(1280px, 94vw);
}

main {
  padding: 40px 0 64px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
}

/* ------------------------------ Кнопки ------------------------------ */

.btn,
a.btn {
  text-decoration: none;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  transition: background 0.15s ease;
}

.btn:hover {
  filter: none;
  background: var(--accent-2);
}

.btn-secondary {
  background: var(--ink);
}

.btn-secondary:hover {
  background: #2a3326;
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
}

/* ------------------------------ Главная ------------------------------ */

.home-hero {
  border: 0;
  border-radius: var(--radius);
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(23, 28, 20, 0.97) 30%, rgba(23, 28, 20, 0.55) 100%),
    url("images/home-cover-tilda.jpg") center / cover no-repeat;
}

.home-hero__inner {
  padding: 72px 56px;
  max-width: 780px;
  gap: 26px;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.home-hero__lead {
  font-size: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
}

.home-hero .btn-telegram {
  background: var(--accent);
  padding: 16px 28px;
  font-size: 16px;
}

.home-hero .btn-telegram:hover {
  background: #85997c;
}

.tag {
  background: var(--ink-soft);
  color: var(--accent-2);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 12px;
}

/* Цитата-приглашение */
.home-quote-block {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: 4px 0 4px 32px;
}

.home-quote-block__mark {
  display: none;
}

.home-quote-block__text {
  font-size: 17px;
  line-height: 1.7;
}

.home-quote-block__author {
  font-size: 15px;
}

/* ------------------------------ Новости ------------------------------ */

.news-list {
  gap: 20px;
}

.news-item {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.news-item h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.news-item time {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.news-item-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.news-item-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.news-item-image {
  border-radius: var(--radius);
}

/* ------------------------------ Проекты ------------------------------ */

.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.project-card {
  border-radius: var(--radius);
  padding: 28px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

/* ------------------------------ Коллектив ------------------------------ */

.team-staff-grid,
.team-directions-grid {
  gap: 32px 28px;
}

.team-dir-card__img {
  border-radius: var(--radius);
  background: var(--ink-soft);
}

.team-dir-card__body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

.team-dir-card__body p {
  color: #8a938a;
  font-weight: 400;
}

.team-members-year h3,
.team-principles p strong {
  font-family: var(--font-body);
}

/* ------------------------------ Формы ------------------------------ */

.form-grid label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid textarea,
.form-grid select {
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(114, 135, 106, 0.16);
}

/* ------------------------------ Канбан ------------------------------ */

.kanban-column,
.kanban-column[data-status="waiting"],
.kanban-column[data-status="in_progress"],
.kanban-column[data-status="pending_review"],
.kanban-column[data-status="done"] {
  background: var(--ink-soft);
  border: 0;
  border-radius: 6px;
  padding: 12px;
}

.kanban-column-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a5250;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-column-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a938a;
}

.kanban-column[data-status="in_progress"] .kanban-column-title::before { background: var(--accent); }
.kanban-column[data-status="pending_review"] .kanban-column-title::before { background: #c9782a; }
.kanban-column[data-status="done"] .kanban-column-title::before { background: #0f6b3d; }

.tasks-project-tab {
  border-radius: var(--radius);
  background: var(--ink-soft);
  border-color: transparent;
}

.tasks-project-tab--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ------------------------------ Подвал ------------------------------ */

.site-footer {
  border-top: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

@media (max-width: 720px) {
  .site-header .container {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav,
  .site-nav-public {
    gap: 16px;
  }

  .home-hero__inner {
    padding: 40px 24px;
  }

  .card {
    padding: 20px;
  }
}

/* ------------------------- Заявки на вступление ------------------------- */

.home-hero .btn-apply {
  padding: 16px 28px;
  font-size: 16px;
  background: #ffffff;
  color: var(--ink);
}

.home-hero .btn-apply:hover {
  background: #e4e9dd;
  color: var(--ink);
}

.application-dialog,
.admin-applications-card {
  border-radius: var(--radius);
}

.application-dialog .form-grid {
  padding: 24px;
}

.admin-applications-filter select {
  border-radius: var(--radius);
  border-color: var(--border);
}

.application-status-badge {
  border-radius: 3px;
  letter-spacing: 0.01em;
}
