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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2933;
  background-color: #ffffff;
  line-height: 1.5;
}

/* Базовый контейнер */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Кнопки */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00a8ff, #0078d4);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 120, 212, 0.4);
  background: linear-gradient(135deg, #0091e5, #0064b3);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 16px;
}

.logo-subtitle {
  font-weight: 400;
  font-size: 11px;
  color: #6b7280;
}

/* Навигация */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
  color: #4b5563;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: #0078d4;
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: #111827;
  font-weight: 600;
}

/* Бургер для мобилок */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 16px;
  background: #111827;
  border-radius: 999px;
}

/* Мобильное меню */
.mobile-nav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 8px 16px 16px;
}

.mobile-nav li {
  margin-bottom: 8px;
}

.mobile-nav a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: #374151;
}

.mobile-nav a.active {
  font-weight: 600;
}

/* HERO about */
.hero-about {
  padding: 60px 0 40px;
  background: radial-gradient(circle at top left, #e0f2fe 0, #ffffff 50%);
}

.hero-about h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: #4b5563;
}

.accent {
  color: #0078d4;
}

/* Общие секции */
.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 26px;
  font-weight: 700;
}

.about-company {
  padding: 32px 0 16px;
}

.about-text {
  font-size: 15px;
  color: #4b5563;
  max-width: 800px;
}

/* Команда */
.team {
  padding: 24px 0 56px;
}

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

.team-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    translate 0.18s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.team-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

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

.team-info {
  padding: 16px 16px 18px;
}

.team-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-position {
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-desc {
  font-size: 13px;
  color: #4b5563;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.scroll-top.show {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  background: #f9fafb;
  font-size: 13px;
  color: #6b7280;
}

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

.site-footer h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-right a {
  color: #0078d4;
  text-decoration: none;
}

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

/* Адаптив */
@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-about {
    padding: 40px 0 24px;
  }

  .hero-about h1 {
    font-size: 26px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}