:root {
  --blue: #3808f5;
  --blue-hover: #2a06c4;
  --lime: #e5ff45;
  --black: #101010;
  --text: #2e2e2e;
  --white: #ffffff;
  --gray: #f8f8f8;
  --radius: 13px;
  --radius-lg: 23px;
  --radius-dark: 59px;
  --radius-offer: 18px;
  --radius-pill: 51px;
  --side: 20px;
  --process-overlap: 140px;
  --font: "Onest", system-ui, sans-serif;
  --font-display: "Raleway", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.2;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: calc(100% - var(--side) * 2);
  max-width: none;
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.92);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 2rem;
  font-size: 15px;
  font-weight: 500;
}

.nav-desktop a:hover {
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #f8f8f8;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
}

.btn--learn {
  width: 100%;
  min-height: 41px;
  padding: 7px 7px 7px 69px;
  font-size: 15px;
  font-weight: 400;
}

.btn--learn img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn--center {
  width: 228px;
  margin-inline: auto;
}

.btn--send {
  width: 100%;
  min-height: 73px;
  padding: 5px 7px 5px 24px;
  font-size: 32px;
  font-weight: 400;
}

.btn--send img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 24px 0 40px;
}

.hero__title {
  margin: 0 0 32px;
  width: 100%;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10.2vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-grid {
  display: grid;
  gap: 15px;
}

.starter-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 192px;
  padding: 22px;
  background: var(--gray);
  border-radius: var(--radius);
}

.starter-card p {
  margin: 0;
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.25;
  color: #000;
}

.hero-project {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.hero-project > img:first-of-type {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hero-project__shade {
  position: absolute;
  inset: 82% 0 0;
  z-index: 1;
  border-radius: 0 0 13.333px 13.333px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(22.5px);
  -webkit-backdrop-filter: blur(22.5px);
  pointer-events: none;
}

.hero-project__text {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: #f8f8f8;
}

.hero-project__text h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
}

.hero-project__text p {
  margin: 4px 0 0;
  font-size: 17px;
}

.hero-project__btn {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
}

/* Awards */
.awards {
  overflow: hidden;
  padding: 8px 0 32px;
}

.awards-row {
  overflow: hidden;
  margin-bottom: 12px;
}

.awards-track {
  display: flex;
  gap: 12.5px;
  width: max-content;
  will-change: transform;
}

.award-pill {
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 9px 7px;
  background: var(--gray);
  border-radius: 63px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

.award-pill__icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.award-pill__icon img:first-child {
  width: 100%;
  height: 100%;
}

.award-pill__icon img:last-child {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
}

.award-pill > span:last-child {
  padding: 0 25px;
}

/* Projects */
.projects {
  padding-bottom: 48px;
}

.section-heading {
  margin: 0 0 24px;
  font-size: 38px;
  font-weight: 500;
  color: #000;
}

.projects-grid {
  display: grid;
  gap: 15px;
}

.project-card {
  display: block;
}

.project-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 365 / 431;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  min-height: 96px;
  padding: 20px 18px 22px;
  background: var(--gray);
  border-radius: var(--radius);
}

.project-card__footer h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.project-card__footer p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.2;
}

.project-card__arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* Manifesto */
.manifesto {
  margin-bottom: 48px;
  padding: 40px 28px 44px;
  background: var(--gray);
  border-radius: var(--radius-lg);
  text-align: center;
}

.manifesto h2 {
  margin: 0 auto;
  max-width: 821px;
  font-size: clamp(1.5rem, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.manifesto p {
  margin: 20px auto 0;
  max-width: 625px;
  font-size: 17px;
  line-height: 1.2;
  color: #000;
}

.manifesto .btn {
  margin-top: 32px;
}

/* Process → dark panel overlap */
.process-bridge {
  position: relative;
}

/* Pricing */
.pricing {
  margin-bottom: 32px;
  text-align: center;
}

.pricing h2 {
  margin: 0 auto;
  max-width: 641px;
  font-size: clamp(1.5rem, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

/* Process */
.process {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  gap: 15px;
  margin-bottom: calc(-1 * var(--process-overlap));
}

.process-card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 13px 9px 27px;
  background: var(--gray);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.process-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 8px 12px;
  border-radius: 47px;
  font-size: 17px;
  white-space: nowrap;
}

.badge--lime {
  background: var(--lime);
  color: #000;
}

.badge--white {
  background: var(--white);
  color: #000;
}

.process-card p {
  margin: 24px 14px 0;
  font-size: 17px;
  line-height: 1.2;
  color: #000;
}

/* Dark panel — full viewport width */
.dark-panel {
  position: relative;
  z-index: 1;
}

.dark-panel__shell {
  width: 100%;
  padding: calc(48px + var(--process-overlap)) 0 56px;
  background: var(--black);
  border-radius: var(--radius-dark);
  color: var(--white);
}

.dark-panel__head {
  margin-bottom: 32px;
}

.dark-panel__title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 38px);
  font-weight: 500;
}

.dark-panel__body {
  padding-bottom: 0;
}

.offers-banner {
  margin-bottom: 48px;
  padding: 0 var(--side);
}

.offers-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-offer);
  overflow: hidden;
}

.offer-column {
  position: relative;
  min-height: min(403px, 42vw);
  overflow: hidden;
}

.offer-column > img:first-of-type {
  width: 100%;
  height: 100%;
  min-height: min(403px, 42vw);
  object-fit: cover;
}

.offer-column__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

.offer-column__center-logo {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  width: min(115px, 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.offer-column__label {
  position: absolute;
  left: 20px;
  right: 12px;
  bottom: 20px;
  z-index: 3;
  color: var(--white);
  text-align: left;
}

.offer-column__label h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.2;
}

.offer-column__label p {
  margin: 6px 0 0;
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.95;
}

/* Contact */
.contact {
  display: grid;
  gap: 32px;
}

.contact__lead {
  margin: 0;
  font-size: clamp(2rem, 6vw, 62px);
  font-weight: 500;
  line-height: 1.2;
}

.contact__sub {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 62px);
  font-weight: 400;
  line-height: 1.2;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 18px 33px;
  border: 1px solid var(--white);
  border-radius: 38px;
  background: transparent;
  color: var(--white);
  outline: none;
}

.field input {
  min-height: 64px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field textarea {
  min-height: 64px;
  border-radius: 38px;
  resize: vertical;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
}

.budget-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.budget-chip {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 0 12px;
  border: 1px solid var(--white);
  border-radius: 38px;
  background: transparent;
  color: var(--white);
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 500;
  cursor: pointer;
}

.budget-chip.is-active {
  background: var(--white);
  color: var(--black);
}

/* Footer */
.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 83px;
  height: 67px;
  border: 1px solid #000;
  border-radius: 15px;
  font-size: 38px;
  font-weight: 500;
  color: #000;
}

.footer-offices {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.footer-office {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.3;
}

.footer-office strong {
  font-size: 15px;
  font-weight: 500;
}

.footer-office a {
  color: #000;
}

.footer-career {
  justify-self: start;
  padding: 10px 13px;
  background: var(--white);
  border: 1px solid #000;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #000;
}

/* Desktop */
@media (min-width: 900px) {
  :root {
    --side: 34px;
  }

  .nav-desktop {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 271px 1fr 1fr;
    align-items: start;
  }

  .hero-project {
    min-height: 417px;
  }

  .hero-project > img:first-of-type {
    min-height: 417px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: calc(-1 * var(--process-overlap));
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  .footer-career {
    justify-self: end;
  }
}

@media (max-width: 899px) {
  :root {
    --process-overlap: 48px;
  }

  .process-grid {
    margin-bottom: calc(-1 * var(--process-overlap));
  }

  .offers-banner__grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-offer);
  }

  .offer-column__center-logo {
    display: none;
  }

  .offer-column__label {
    left: 14px;
    right: 10px;
    bottom: 14px;
  }
}
