:root {
  --bg: #ffffff;
  --page: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --text: #171717;
  --muted: #626262;
  --muted-soft: #868686;
  --border: #e7e7e7;
  --accent: #ff3db8;
  --accent-soft: #fff0fa;
  --navy: #101010;
  --white: #ffffff;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.045);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.07);
  --container: 1060px;
  --section: 72px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 13px 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.brand,
.zakharov-brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 94px;
  height: auto;
}

.brand-separator {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.zakharov-brand {
  overflow: hidden;
  width: 98px;
  height: 31px;
  justify-content: center;
  background: #000000;
  border-radius: 7px;
}

.zakharov-brand img {
  display: block;
  width: 88px;
  height: auto;
}

.proposal-badge {
  justify-self: center;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.header-cta {
  justify-self: end;
  padding: 8px 13px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: var(--navy);
  border-radius: 9px;
  transition:
    transform var(--ease),
    background var(--ease);
}

.header-cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.section {
  padding: var(--section) 0;
}

.hero {
  padding-top: 82px;
  padding-bottom: 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  font-size: clamp(36px, 4.8vw, 52px);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
}

.btn-primary:hover {
  background: #2a2a2a;
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.team-card,
.info-card,
.role-card,
.timeline-card,
.scope-card,
.final-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.team-card {
  min-width: 0;
  padding: 22px;
}

.card-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: var(--surface-soft);
  border-radius: 999px;
}

.team-member {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 13px;
}

.avatar {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.team-member h2,
.role-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.team-member p,
.role-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.team-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--border);
}

.section-heading,
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(290px, 0.7fr);
  align-items: end;
  gap: 38px;
  margin-bottom: 24px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 22px;
}

.section-heading h2,
.split-heading h2,
.pricing-copy h2,
.scope-card h2,
.final-card h2 {
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-heading p,
.split-heading p,
.pricing-copy p,
.final-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  gap: 14px;
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  min-height: 180px;
  padding: 18px;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.info-card:hover {
  border-color: #d5d5d5;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-card {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  background: var(--accent-soft);
  border-radius: 9px;
  place-items: center;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.info-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.flow-wrap {
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-item {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 560;
  text-align: center;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
}

.flow-item:not(:last-child)::after {
  position: absolute;
  right: -12px;
  z-index: 2;
  color: var(--muted-soft);
  font-size: 15px;
  content: "→";
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
}

.role-head {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.check-list,
.minus-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.check-list li,
.minus-list li {
  position: relative;
  padding-left: 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-list li::before,
.minus-list li::before {
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.check-list li::before {
  content: "+";
}

.minus-list li::before {
  color: var(--muted-soft);
  content: "–";
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.facts span {
  padding: 6px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.resume-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 9px;
  transition:
    transform var(--ease),
    border-color var(--ease);
}

.resume-link:hover {
  border-color: #d5d5d5;
  transform: translateY(-1px);
}

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

.timeline-card {
  padding: 20px;
}

.timeline-label {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-card {
  padding: 22px;
}

.scope-card h2 {
  margin-bottom: 18px;
  font-size: clamp(22px, 2.3vw, 28px);
}

.scope-card.muted {
  background: var(--surface-soft);
}

.pricing-section,
#format {
  scroll-margin-top: 74px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(330px, 0.68fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.pricing-copy {
  padding: 8px;
}

.pricing-copy p:not(.eyebrow) {
  max-width: 500px;
  margin-top: 14px;
}

.price-card {
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.price-card h3 span {
  display: block;
  margin-top: 6px;
  color: #d6d6d6;
  font-size: 14px;
  font-weight: 500;
}

.price-subtitle {
  margin-top: 13px;
  color: #e8e8e8;
  font-size: 14px;
}

.price-lines {
  display: grid;
  gap: 0;
  margin: 22px 0;
}

.price-lines div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  color: #cfcfcf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.price-lines strong {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

.price-note {
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.55;
}

.budget-box {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 14px;
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.budget-box strong,
.budget-box span {
  font-size: 13px;
  line-height: 1.45;
}

.budget-box span {
  color: #d4d4d4;
}

.final-section {
  padding-top: 36px;
}

.final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.final-card p {
  max-width: 690px;
  margin-top: 10px;
}

.site-footer {
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
  :root {
    --section: 60px;
  }

  .hero-grid,
  .section-heading,
  .split-heading,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 28px;
  }

  .cards-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flow-item:nth-child(4)::after {
    display: none;
  }
}

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

  .site-header {
    padding: 11px 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 92px;
  }

  .zakharov-brand {
    width: 84px;
    height: 28px;
  }

  .zakharov-brand img {
    width: 76px;
  }

  .proposal-badge {
    display: none;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-text {
    font-size: 15px;
  }

  .roles-grid,
  .roadmap,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .flow-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-item:nth-child(2n)::after {
    display: none;
  }

  .pricing-grid {
    padding: 18px;
  }

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

@media (max-width: 560px) {
  :root {
    --section: 50px;
  }

  .header-cta {
    padding: 8px 11px;
    font-size: 12px;
  }

  .brand-group {
    gap: 7px;
  }

  .brand img {
    width: 82px;
  }

  .brand-separator {
    height: 20px;
  }

  .zakharov-brand {
    width: 74px;
    height: 25px;
    border-radius: 6px;
  }

  .zakharov-brand img {
    width: 66px;
  }

  .cards-grid.four,
  .flow-wrap {
    grid-template-columns: 1fr;
  }

  .flow-item::after {
    display: none;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .team-card,
  .info-card,
  .role-card,
  .timeline-card,
  .scope-card,
  .price-card,
  .final-card {
    border-radius: 14px;
  }

  .team-card,
  .role-card,
  .timeline-card,
  .scope-card,
  .price-card,
  .final-card {
    padding: 18px;
  }

  .info-card {
    min-height: 0;
  }

  .price-lines div {
    display: grid;
    gap: 4px;
  }

  .price-lines strong {
    text-align: left;
  }
}

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

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