:root {
  color-scheme: light;
  --base: #f4f7fc;
  --base-soft: #edf2f9;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(15, 23, 42, 0.2);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --teal: #0f9f8f;
  --indigo: #6366f1;
  --shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.34);
  --radius-lg: 24px;
  --radius-md: 20px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--base);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(59, 130, 246, 0.32);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--base);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  position: fixed;
  z-index: -3;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.09) 1px, transparent 0);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow--one {
  top: -260px;
  left: -190px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 66%);
}

.page-glow--two {
  top: -280px;
  right: -220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 66%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  text-decoration: none;
}

.brand:focus-visible,
.telegram-button:focus-visible,
.sytry-link:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 4px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 14px 32px -20px rgba(59, 130, 246, 0.9);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero {
  display: grid;
  min-height: 550px;
  grid-template-columns: minmax(0, 780px) 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 24px 44px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 62px;
}

.hero__status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(16px);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--teal);
  border-radius: inherit;
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { opacity: 0.7; transform: scale(0.5); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

.eyebrow {
  margin: 0;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent-soft), var(--teal) 52%, var(--indigo));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

.telegram-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 19px 13px 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #ffffff;
  box-shadow: 0 18px 34px -20px rgba(34, 158, 217, 0.95);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.telegram-button:hover {
  box-shadow: 0 22px 40px -20px rgba(34, 158, 217, 1);
  filter: saturate(1.08);
  transform: translateY(-3px);
}

.telegram-button__icon {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero__note {
  display: flex;
  max-width: 250px;
  align-items: flex-start;
  gap: 14px;
  align-self: end;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero__note span {
  color: var(--teal);
  font-size: 20px;
}

.hero__note p {
  margin: 0;
}

.stats-section,
.team-section {
  padding-top: 74px;
  padding-bottom: 74px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 30px;
}

.section-heading h2,
.team-intro h2,
.thanks-card h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 630;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card,
.person-card,
.thanks-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, border-color 220ms ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--card-glow);
  filter: blur(12px);
  opacity: 0.3;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
}

.stat-card--calls { --card-glow: var(--accent); }
.stat-card--people { --card-glow: var(--teal); }
.stat-card--reports { --card-glow: var(--indigo); }

.stat-card__top {
  display: flex;
  min-height: 38px;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-card__index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.stat-card__pulse {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(59, 130, 246, 0.08);
}

.stat-card__people {
  color: var(--teal);
  font-size: 9px;
  letter-spacing: -1px;
}

.stat-card__spark {
  color: var(--indigo);
  font-size: 26px;
}

.stat-number {
  display: block;
  margin-top: 27px;
  font-size: clamp(50px, 5.5vw, 66px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stat-card h3 {
  margin: 19px 0 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.stat-card p {
  max-width: 270px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.team-section {
  border-top: 1px solid var(--border);
}

.team-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.sytry-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.sytry-link span {
  color: var(--accent-soft);
  font-size: 18px;
}

.sytry-link:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.person-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, border-color 220ms ease;
}

.person-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
}

.person-card__photo {
  position: relative;
  display: grid;
  width: 100%;
  height: 350px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 25%, rgba(96, 165, 250, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(59, 130, 246, 0.07), rgba(45, 212, 191, 0.05));
  color: var(--text);
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: zoom-in;
}

.person-card__photo:focus-visible {
  z-index: 3;
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: -5px;
}

.person-card__photo:disabled {
  cursor: default;
}

.person-card:nth-child(2) .person-card__photo {
  background:
    radial-gradient(circle at 50% 25%, rgba(45, 212, 191, 0.17), transparent 35%),
    linear-gradient(145deg, rgba(45, 212, 191, 0.06), rgba(99, 102, 241, 0.06));
}

.person-card:nth-child(3) .person-card__photo {
  background:
    radial-gradient(circle at 50% 25%, rgba(129, 140, 248, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(99, 102, 241, 0.07), rgba(59, 130, 246, 0.05));
}

.person-card__photo::after {
  content: "место для фотографии";
  position: absolute;
  bottom: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person-card__initials {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.04em;
  box-shadow: 0 0 60px -25px var(--accent);
}

.person-card__photo img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease, transform 350ms ease;
}

.person-card__photo img.is-loaded {
  opacity: 1;
}

.person-card--maxim .person-card__photo img.is-loaded {
  object-position: 50% 62%;
  transform: scale(1.14);
}

.person-card--darya .person-card__photo img.is-loaded {
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.02);
}

.person-card__photo:has(img.is-loaded)::after {
  display: none;
}

.person-card__number {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.55);
  color: #f8fafc;
  font-size: 10px;
  backdrop-filter: blur(12px);
}

.person-card__zoom {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.64);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.person-card__photo:has(img.is-loaded):hover .person-card__zoom,
.person-card__photo:has(img.is-loaded):focus-visible .person-card__zoom {
  opacity: 1;
  transform: translate(-50%, 0);
}

.person-card__body {
  min-height: 132px;
  padding: 21px 23px 23px;
  border-top: 1px solid var(--border);
}

.person-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 630;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.person-card p {
  margin: 12px 0 0;
  color: var(--accent-soft);
  font-size: 13px;
  line-height: 1.45;
}

.thanks-section {
  padding-top: 24px;
  padding-bottom: 82px;
}

.thanks-card {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius-lg);
}

.thanks-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.28);
  filter: blur(25px);
}

.thanks-card__symbol {
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  box-shadow: 0 18px 36px -24px rgba(37, 99, 235, 0.72);
}

.thanks-card__symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thanks-card h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.thanks-card div > p:last-child {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--teal);
}

body.modal-open {
  overflow: hidden;
}

.photo-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(15, 23, 42, 0.74);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.photo-modal[hidden] {
  display: none;
}

.photo-modal.is-open {
  opacity: 1;
}

.photo-modal__dialog {
  position: relative;
  width: fit-content;
  max-width: min(94vw, 960px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 32px 90px -28px rgba(0, 0, 0, 0.72);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.photo-modal.is-open .photo-modal__dialog {
  transform: translateY(0) scale(1);
}

.photo-modal figure {
  margin: 0;
}

.photo-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  border-radius: 15px;
  background: var(--base-soft);
  object-fit: contain;
}

.photo-modal figcaption {
  padding: 12px 8px 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.photo-modal__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, transform 180ms ease;
}

.photo-modal__close:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.05);
}

.photo-modal__close:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.85);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer__content {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--muted);
  font-size: 12px;
}

.brand--small .brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.brand--small strong {
  color: var(--text);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats-grid .reveal:nth-child(2),
.team-grid .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.stats-grid .reveal:nth-child(3),
.team-grid .reveal:nth-child(3) {
  transition-delay: 180ms;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .hero__status,
  .hero__content,
  .hero__note {
    grid-column: 1;
  }

  .hero__note {
    max-width: 100%;
    align-self: auto;
    margin-top: 4px;
  }

  .stats-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 270px;
  }

  .person-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1fr;
  }

  .person-card__photo {
    height: 320px;
  }

  .person-card__body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .thanks-card {
    grid-template-columns: auto 1fr;
  }

  .thanks-card .text-link {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    min-height: 76px;
  }

  .brand small {
    display: none;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero {
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .telegram-button {
    width: fit-content;
  }

  .stats-section,
  .team-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .stat-card {
    min-height: 270px;
  }

  .team-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .person-card {
    display: block;
  }

  .person-card__photo {
    height: 360px;
  }

  .person-card__body {
    min-height: 130px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .thanks-section {
    padding-bottom: 62px;
  }

  .thanks-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .photo-modal {
    padding: 12px;
  }

  .photo-modal__dialog {
    max-width: 100%;
    padding: 8px;
    border-radius: 19px;
  }

  .photo-modal__image {
    max-height: calc(100vh - 100px);
    border-radius: 12px;
  }

  .photo-modal__close {
    top: 16px;
    right: 16px;
  }

  .thanks-card .text-link {
    grid-column: 1;
  }

  .site-footer__content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-footer__content p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
