/* =========================================================
   ICE Finance — Design System
   ========================================================= */

/* === ШРИФТЫ === */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Unbounded:wght@500;600;700;800&display=swap');

:root {
  /* Цвета */
  --bg:          #070b14;
  --bg-light:    #0c1220;
  --panel:       #101828;
  --panel-light: #172136;
  --border:      #1e2a42;
  --ice:         #38bdf8;
  --ice-light:   #7dd3fc;
  --ice-dark:    #0369a1;
  --gold:        #f0b429;
  --text-main:   #ecf3fb;
  --text-muted:  #8298b5;
  --text-dim:    #51648a;

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Шрифты */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Анимация */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === ДЕКОРАТИВНЫЙ ФОН === */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-glow::before {
  top: -200px;
  left: -200px;
  background: #38bdf814;
}

.bg-glow::after {
  bottom: -200px;
  right: -200px;
  background: #f0b42914;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 28px;
  font-weight: 800;
}

h2 {
  font-size: 20px;
  font-weight: 700;
}

h3 {
  font-size: 16px;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ice-light);
  background: #38bdf818;
  border: 1px solid #38bdf830;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding-top: calc(var(--header-height) + 28px);
  padding-bottom: 40px;
  min-height: 100vh;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .page {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 64px;
  }
}

/* === PANEL / CARD === */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.card-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.card-row:last-child {
  border-bottom: none;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ice-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), background 0.2s ease;
}

.btn-primary:hover {
  background: var(--ice);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ice-light);
  border: 1px solid var(--ice-dark);
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.btn-ghost:hover {
  background: #38bdf818;
  border-color: var(--ice-light);
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: #070b14b3;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-main);
  flex-shrink: 0;
}

.site-logo-icon {
  display: block;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.site-logo-icon img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transform: scale(1.85);
  transform-origin: 50% 25%;
}

.site-logo .ice-accent {
  color: var(--ice);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-spring);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .site-logo {
    gap: 10px;
    font-size: 18px;
  }

  .site-logo-icon {
    height: 48px;
    width: 48px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.site-nav a:hover {
  color: var(--text-main);
  background: var(--panel-light);
}

.site-nav a.active {
  color: var(--ice-light);
  background: #38bdf818;
  border: 1px solid #38bdf830;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  padding: 32px 0;
  margin-top: 48px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

.footer-requisites {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 12px;
}

/* === SECTIONS === */
.section {
  margin-bottom: 40px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title .label-mono {
  display: block;
  margin-bottom: 8px;
}

.about-lead {
  padding: 20px;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.75;
}

.about-lead p {
  color: var(--text-main);
}

.about-lead p + p {
  margin-top: 16px;
}

.about-lead strong {
  color: var(--ice-light);
  font-weight: 700;
}

/* === TEAM === */
.team-lead-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-lead-card {
  flex: 1 1 auto;
  max-width: none;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

@media (min-width: 640px) {
  .section {
    margin-bottom: 64px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .about-lead {
    padding: 32px;
    font-size: 16px;
  }

  .team-lead-grid {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-lead-card {
    flex: 1 1 220px;
    max-width: 260px;
  }
}

.team-lead-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-dark);
}

.team-avatar {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid var(--ice-dark);
  background: var(--panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-artem {
  object-position: 30% 18%;
  transform: scale(1.45);
  transform-origin: 30% 18%;
}

.avatar-pavel {
  object-position: 40% 10%;
  transform: scale(1.75);
  transform-origin: 40% 10%;
}

.avatar-georgiy {
  object-position: 50% 12%;
  transform: scale(1.9);
  transform-origin: 50% 12%;
}

.avatar-placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  padding: 8px;
}

.team-lead-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-lead-role {
  color: var(--ice-light);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-lead-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.team-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .team-groups {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
  }
}

.team-group h3 {
  margin-bottom: 12px;
  color: var(--text-main);
}

.team-group-list {
  overflow: hidden;
}

.team-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-member-name {
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
}

.team-member-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === SOCIALS === */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-card {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

@media (min-width: 640px) {
  .social-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .social-card {
    flex: 1 1 200px;
    padding: 20px;
  }
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-dark);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #38bdf818;
  border: 1px solid #38bdf830;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice-light);
  flex-shrink: 0;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon .t-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ice-light);
}

.social-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* === EVENTS === */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--ice-dark);
}

.event-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--panel-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-type-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #070b14cc;
  backdrop-filter: blur(6px);
  font-size: 9px;
  padding: 3px 8px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .event-card {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px;
  }

  .event-photo {
    position: static;
    width: 160px;
    aspect-ratio: 16 / 9;
  }

  .event-type-tag {
    top: 12px;
    right: 12px;
    font-size: 8px;
    padding: 2px 6px;
  }

  .event-title {
    padding-right: 110px;
  }
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-promomed {
  object-position: 50% 54%;
}

.photo-mosbirzha-excursion {
  object-position: 50% 22%;
}

.event-photo .avatar-placeholder {
  font-size: 9px;
}

.event-body {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.event-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
  width: 100%;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.event-company {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ice-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* === RESPONSIVE ===
   Mobile-first: базовые стили выше рассчитаны на телефон (~375px).
   min-width: 640px раздвигает раскладку под планшет/десктоп. */
h1 {
  font-size: 22px;
}

@media (min-width: 640px) {
  h1 {
    font-size: 28px;
  }
}
