@import "./tokens.css";

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 220px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-tiffany);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--color-accent-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline.is-active,
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-lg {
  padding: 14px 32px;
  border-radius: var(--radius-md);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 48px;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(10, 186, 181, 0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.12), transparent 35%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__content { position: relative; z-index: 1; }

.hero-flag {
  width: 4px;
  height: 56px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff 0%, #0039a6 50%, #d52b1e 100%);
  margin-bottom: 20px;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero__visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.hero-shield {
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(10, 186, 181, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(5, 10, 20, 0));
  border: 1px solid rgba(10, 186, 181, 0.35);
  box-shadow: 0 0 60px rgba(10, 186, 181, 0.25);
  display: grid;
  place-items: center;
}

.hero-shield img {
  width: 70%;
  opacity: 0.95;
  filter: drop-shadow(0 0 24px rgba(10, 186, 181, 0.45));
}

.stats-bar {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stats-bar--team {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item__icon {
  width: 44px;
  height: 44px;
  color: var(--color-tiffany);
  flex-shrink: 0;
}

.stat-item__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.mission-values {
  padding: 72px 0;
}

.mission-values__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
}

.mission-values__divider {
  background: var(--color-border);
  width: 1px;
  min-height: 100%;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-text {
  margin: 0;
  color: var(--color-text-muted);
}

.values-list {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.value-item__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent-blue);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.content-section {
  padding: 64px 0 80px;
  background: #f8fafc;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--color-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card__image {
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-tiffany-light), #dbeafe);
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tag--medicine { background: #dcfce7; color: #166534; }
.tag--education { background: #dbeafe; color: #1d4ed8; }
.tag--science { background: #ede9fe; color: #6d28d9; }
.tag--internal { background: #fef3c7; color: #b45309; }
.tag--events { background: #dbeafe; color: #1d4ed8; }
.tag--announcements { background: #cffafe; color: #0e7490; }
.tag--achievements { background: #dcfce7; color: #166534; }

.card__excerpt {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.card__link {
  color: var(--color-accent-blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
}

.team-card__photo {
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.team-card__body {
  padding: 16px;
}

.team-card__name {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
}

.team-card__position {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card .card__image { aspect-ratio: 16/11; }

.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.news-card__date {
  color: var(--color-tiffany-dark);
  font-weight: 700;
}

.news-card__category {
  color: var(--color-accent-blue);
  font-weight: 700;
}

.contacts-hero {
  padding-bottom: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-tiffany);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item__title {
  margin: 0 0 4px;
  font-weight: 700;
}

.contact-item__value {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-item__value.is-empty {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.contacts-map {
  min-height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d1528;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contacts-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(0.2) contrast(1.1);
}

.contacts-bottom {
  padding: 48px 0;
  background: var(--color-white);
}

.contacts-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contacts-bottom__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.contacts-bottom__subtitle {
  margin: 0;
  color: var(--color-text-muted);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--color-accent-blue);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: default;
}

.detail-page {
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: #f8fafc;
}

.detail-hero {
  padding: calc(var(--header-h) + 48px) 0 32px;
  background: var(--gradient-hero);
  color: white;
}

.detail-hero .hero-flag { margin-bottom: 12px; }

.detail-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.detail-cover {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.detail-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--color-card-shadow);
  line-height: 1.75;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.detail-gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.stat-item__icon svg,
.value-item__icon svg,
.contact-item__icon svg {
  width: 100%;
  height: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 600;
}

.back-link:hover { color: var(--color-tiffany); }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 200px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .mission-values__grid { grid-template-columns: 1fr; }
  .mission-values__divider { display: none; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-navy-soft);
    padding: 16px 24px 24px;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .brand__text { font-size: 0.62rem; max-width: 160px; }
  .stats-bar,
  .stats-bar--team { grid-template-columns: 1fr; }
  .cards-grid,
  .team-grid,
  .news-grid { grid-template-columns: 1fr; }
  .contacts-bottom__inner { flex-direction: column; align-items: flex-start; }
  .detail-gallery { grid-template-columns: 1fr; }
}
