:root {
  --primary: #155da7;
  --primary-dark: #0e3156;
  --accent: #1e63b0;
  --cream: #eee7d5;
  --text: #0e3156;
  --text-muted: #4a5f75;
  --bg: #f8f6f1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(14, 49, 86, 0.12);
  --radius: 12px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Cousine", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.c {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.x {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.half {
  flex: 1 1 280px;
}

.half.last {
  align-self: center;
}

/* Header / nav */
header {
  position: relative;
  min-height: 92vh;
  padding-bottom: 4rem;
  background: linear-gradient(165deg, var(--cream) 0%, #f4efe4 45%, var(--bg) 100%);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(55vw, 520px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(21, 93, 167, 0.18), transparent 70%);
  pointer-events: none;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}

.logo span {
  color: var(--primary);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a:not(.button) {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.menu a:not(.button):hover {
  color: var(--primary);
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.35rem;
}

.menu-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-icon.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(21, 93, 167, 0.35);
}

.button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.button svg {
  width: 1.1rem;
  height: auto;
  stroke: currentColor;
  stroke-width: 2;
}

.button--nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  box-shadow: none;
}

.pitch-caption {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 700;
  color: rgba(14, 49, 86, 0.06);
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
  margin: 0;
  white-space: nowrap;
}

.pitch {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 12vh, 6rem);
}

.pitch-left {
  max-width: 640px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--primary-dark);
}

h1 span {
  color: var(--primary);
  font-weight: 600;
}

.subline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

/* Sections */
section {
  padding: clamp(4rem, 10vh, 6.5rem) 0;
}

.intro {
  background: var(--white);
}

.intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  color: var(--primary-dark);
}

.intro h3,
.intro h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

.intro p {
  color: var(--text-muted);
  margin: 0;
}

.img {
  border-radius: var(--radius);
  min-height: 280px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.img--workspace {
  background-image: linear-gradient(145deg, rgba(14, 49, 86, 0.85), rgba(21, 93, 167, 0.75)),
    url("/assets/brand-logo.png");
  background-blend-mode: overlay;
  background-size: 40%;
  background-repeat: no-repeat;
  background-color: var(--primary-dark);
}

.solutions {
  background: var(--bg);
}

.solutions > .c > h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 2.5rem;
  color: var(--primary-dark);
}

.solutions .icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--primary);
}

.solutions .icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
}

.solutions h4 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

.solutions p {
  margin: 0;
  color: var(--text-muted);
}

.video {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.video .bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2a7bc4 100%);
  z-index: 0;
}

.video .c {
  position: relative;
  z-index: 1;
}

.video h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}

.video p,
.video .steps {
  color: rgba(255, 255, 255, 0.88);
}

.steps {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.img--chat {
  min-height: 320px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.img--chat::after {
  content: "«Какие решения приняли на прошлой встрече по релизу?»";
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 1rem 1.15rem;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 12px 12px 12px 4px;
  max-width: 90%;
  box-shadow: var(--shadow);
}

.contact {
  position: relative;
  background: var(--cream);
  text-align: center;
  padding-bottom: 5rem;
}

.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact .theme {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--primary-dark);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 3rem;
}

footer .logo {
  color: var(--white);
}

footer .logo span {
  color: var(--cream);
}

footer .copy {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  max-width: 36rem;
}

footer a {
  color: var(--cream);
  text-decoration: underline;
}

footer .legal {
  margin: 0;
  font-size: 0.85rem;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: var(--shadow);
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* Animations */
.slide-up,
.slide-up-slow,
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-up.visible,
.slide-up-slow.visible,
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up-slow {
  transition-duration: 1s;
  transition-delay: 0.15s;
}

.offset {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .menu-icon {
    display: flex;
  }

  .menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    background: var(--white);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow);
  }

  .menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu li {
    border-bottom: 1px solid rgba(14, 49, 86, 0.08);
  }

  .menu a {
    display: block;
    padding: 1rem 0;
  }

  .button--nav {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .pitch-caption {
    display: none;
  }
}
