:root {
  --red: #e31b2f;
  --ink: #111318;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f7f7f5;
  --white: #ffffff;
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

main {
  flex: 1;
}

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

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.86), rgba(7, 9, 13, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover,
.nav button:hover {
  color: var(--white);
}

.nav button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 15, 20, 0.96);
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.dropdown-menu a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu.empty {
  min-height: 40px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.page-hero {
  position: relative;
  min-height: min(82vh, 760px);
  padding: clamp(76px, 11vw, 138px) clamp(18px, 6vw, 88px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.96) 0%, rgba(8, 10, 14, 0.78) 48%, rgba(8, 10, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.68)),
    url("team.jpg") 68% center / cover no-repeat,
    #080a0e;
}

.first-hero {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.96) 0%, rgba(8, 10, 14, 0.78) 48%, rgba(8, 10, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.68)),
    url("morethanrobot.png") 68% center / cover no-repeat,
    #080a0e;
}

.page-hero::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: var(--red);
  content: "";
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.92;
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 27, 47, 0.1), transparent 30%),
    linear-gradient(180deg, #f7f7f5, #eef1f5);
}

.story-grid article {
  position: relative;
  min-height: 340px;
  padding: clamp(24px, 3.4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.story-grid article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: var(--red);
}

.story-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(17, 19, 24, 0.12);
}

.story-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.story-grid h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.story-grid p {
  margin: 0;
  color: #343944;
  font-size: 17px;
  line-height: 1.62;
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 88px) 36px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(227, 27, 47, 0.08), rgba(7, 9, 13, 0) 34%),
    linear-gradient(180deg, #11151d 0%, #07090d 74%),
    #07090d;
}

.footer::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 6vw, 88px);
  width: 72px;
  height: 3px;
  content: "";
  background: var(--red);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--white);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 2px solid rgba(227, 27, 47, 0.65);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--red);
}

@media (max-width: 860px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    display: none;
  }

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

@media (max-width: 520px) {
  .page-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
