@font-face {
	font-family: 'Montserrat';
	font-weight: normal;
	font-style: normal;
	src: url('../font/Montserrat-Regular.ttf');
}

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: bold;
	src: url('../font/Montserrat-Bold.ttf');
}

@font-face {
	font-family: 'Montserrat';
	font-weight: normal;
	font-style: italic;
	src: url('../font/Montserrat-Italic.ttf');
}

@font-face {
	font-family: 'Montserrat';
	font-weight: bold;
	font-style: italic;
	src: url('../font/Montserrat-BoldItalic.ttf');
}
html, body {
  height: 100%;
}

:root {
  --navy: #1a2744;
  --gold: #b8922a;
  --gold-light: #d4a843;
  --cream: #f7f4ef;
  --cream-dark: #ede8df;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --border: #d4c9b0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Montserrat";
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Logo area */
.header {
  text-align: center;
  padding: 40px 24px 20px;
  border-bottom: 2px solid var(--border);
  background: var(--white);
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.logo-emblem {
  width: 90px;
  height: 90px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-emblem svg {
  width: 64px;
  height: 64px;
}

.org-name {
  font-size: clamp(0.7rem, 2.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
  max-width: 520px;
  line-height: 1.5;
  text-align: center;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 36px;
}

.title-block {
  text-align: center;
  max-width: 680px;
}

.title-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.main-title {
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.title-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons grid */
.buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  transform-origin: bottom;
}

.nav-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184, 146, 42, 0.12);
  transform: translateY(-2px);
}

.nav-btn:hover::before {
  transform: scaleY(1);
}

.nav-btn .btn-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-btn .btn-title {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-btn .btn-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav-btn.accent {
  background: var(--navy);
  border-color: var(--navy);
}

.nav-btn.accent::before {
  background: var(--gold-light);
}

.nav-btn.accent .btn-title {
  color: var(--white);
}

.nav-btn.accent .btn-subtitle {
  color: rgba(255,255,255,0.55);
}

.nav-btn.accent:hover {
  background: #243260;
  border-color: #243260;
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.25);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 24px 28px;
  border-top: 1.5px solid var(--border);
  background: var(--white);
}

.footer-city {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-irn {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
  font-style: italic;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 39, 68, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  margin: auto; /* ключевая строка для NW.js */
  position: relative;
}

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

.modal {
  background: var(--white);
  border-radius: 6px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  border-radius: 6px 6px 0 0;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-top: -2px;
}

.modal-close:hover { color: var(--white); }

.modal-body {
  padding: 26px 28px 30px;
}

/* Authors modal */
.authors-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--cream);
  border-radius: 4px;
  border-left: 4px solid var(--gold);
}

.author-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info .author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-info .author-degree {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Intro modal */
.intro-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
}

.intro-text p { margin-bottom: 14px; }
.intro-text p:last-child { margin-bottom: 0; }


@media (max-width: 480px) {
  .buttons-grid {
    grid-template-columns: 1fr;
  }

  .main { padding: 28px 16px; gap: 28px; }

  .header { padding: 28px 16px 16px; }

  .modal-body { padding: 20px 18px 24px; }
  .modal-header { padding: 18px 18px 14px; }

  .author-card { flex-direction: column; gap: 10px; }
}
