.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: flex-end;
  background: var(--sc-navy);
}

.hero__picture,
.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 40%;
}

.hero__scrim {
  background: linear-gradient(180deg, rgba(20, 51, 63, 0.42), rgba(20, 51, 63, 0.2) 38%, rgba(20, 51, 63, 0.82));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-bottom: 92px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sc-orange);
  content: "";
}

.hero__title {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(2.65rem, 7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  max-width: 560px;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  white-space: pre-line;
}

.hero__actions {
  display: flex;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: top;
  animation: hero-line 1.8s ease-in-out infinite;
}

@keyframes hero-line {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

.bureau {
  padding-block: 104px;
  background: var(--sc-canvas);
}

.bureau__intro,
.bureau__history {
  display: grid;
  gap: 56px;
  align-items: center;
}

.bureau__intro {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}

.bureau__intro > *,
.bureau__history > * {
  min-width: 0;
}

.bureau__intro picture {
  display: block;
  width: 100%;
  min-width: 0;
}

.bureau__history {
  grid-template-columns: 1.1fr 1fr;
}

.bureau__image {
  width: 100%;
  height: 440px;
  border-radius: 18px;
  box-shadow: var(--sc-shadow-lg);
  object-fit: cover;
}

.bureau__content,
.bureau__history-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bureau__title {
  margin: 16px 0 18px;
  font-size: clamp(1.9rem, 2.15vw, 2.15rem);
  line-height: 1.12;
}

.bureau__history-title,
.contact__title {
  margin: 16px 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.375rem);
  line-height: 1.12;
}

.bureau__description,
.bureau__history-text,
.contact__subtitle {
  color: var(--sc-body);
  font-size: 18px;
  line-height: 1.6;
}

.bureau__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 38px;
}

.bureau__stat {
  display: flex;
  flex-direction: column;
}

.bureau__stat-value {
  color: var(--sc-blue);
  font-family: var(--sc-serif);
  font-size: 40px;
  line-height: 1;
}

.bureau__stat-label {
  margin-top: 7px;
  color: var(--sc-muted);
  font-size: 13px;
}

.bureau__history {
  margin-top: 88px;
}

.bureau__history-paragraph + .bureau__history-paragraph {
  margin-top: 18px;
}

.bureau__history-figure {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.bureau__history-image {
  width: auto;
  max-width: 100%;
  height: 560px;
  border-radius: 18px;
  object-fit: cover;
}

.bureau__history-caption {
  color: var(--sc-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

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

.competencies .section__head {
  max-width: 760px;
}

.competencies .section__title {
  overflow-wrap: normal;
}

.competencies__card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 30px 32px;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: var(--sc-paper);
}

.competencies__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}

.competencies__title {
  margin-bottom: 8px;
  font-size: 21px;
}

.competencies__description {
  color: var(--sc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.services .section__head {
  max-width: 820px;
}

.services__grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  background: var(--sc-line);
}

.services__item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 36px;
  background: var(--sc-linen);
}

.services__icon-shell {
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  background: var(--sc-blue-tint);
}

.services__icon {
  width: 28px;
  height: 28px;
  color: var(--sc-blue);
}

.services__content {
  min-width: 0;
}

.services__title {
  margin-bottom: 7px;
  font-size: 22px;
}

.services__description {
  color: var(--sc-muted);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
}

.process__step {
  position: relative;
  min-width: 0;
  padding-right: 28px;
}

.process__step:not(:last-child)::after {
  position: absolute;
  top: 19px;
  right: 12px;
  left: 52px;
  height: 2px;
  border-radius: 2px;
  background: var(--sc-orange);
  content: "";
}

.process__number {
  position: relative;
  z-index: 1;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 2px solid var(--sc-orange);
  border-radius: 50%;
  background: var(--sc-navy);
  color: var(--sc-orange);
  font-family: var(--sc-serif);
  font-size: 16px;
}

.process__title {
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.process__description {
  color: var(--sc-on-dark-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

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

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact__aside,
.contact__form,
.contact__field {
  display: flex;
  flex-direction: column;
}

.contact__aside {
  align-items: flex-start;
}

.contact__title-line {
  display: block;
}

.contact__title-line:empty {
  display: none;
}

.contact__subtitle {
  color: var(--sc-muted);
  line-height: 1.55;
}

.contact__details {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.9;
}

.contact__link:hover {
  color: var(--sc-blue);
}

.contact__form {
  gap: 18px;
}

.contact__field {
  gap: 7px;
}

.contact__label {
  color: var(--sc-ink);
  font-size: 13px;
  font-weight: 600;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sc-line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--sc-paper);
  color: var(--sc-ink);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--sc-blue);
  box-shadow: var(--sc-shadow-focus);
}

.contact__textarea {
  min-height: 112px;
  resize: vertical;
}

.contact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact__status {
  color: var(--sc-success);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.contact__status--visible {
  opacity: 1;
}

.contact__status--error {
  color: var(--sc-error);
}

@media (min-width: 1025px) {
  .bureau__title,
  .competencies .section__title,
  .services .section__title {
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .bureau__intro,
  .bureau__history,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bureau__image {
    height: 340px;
  }


  .bureau__history-image {
    width: min(100%, 380px);
    height: auto;
  }

  .process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .process__step:nth-child(3)::after {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero__content {
    padding-bottom: 84px;
  }

  .hero__scroll {
    display: none;
  }

  .bureau {
    padding-block: 64px;
  }

  .bureau__history {
    margin-top: 64px;
  }

  .competencies__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__steps,
  .portfolio__grid {
    --mobile-carousel-gap: 16px;

    display: flex;
    gap: var(--mobile-carousel-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .process__steps::-webkit-scrollbar,
  .portfolio__grid::-webkit-scrollbar {
    display: none;
  }

  .process__steps::after,
  .portfolio__grid::after {
    flex: 0 0 15%;
    content: "";
  }

  .process__step,
  .portfolio__grid .project-card {
    flex: 0 0 calc(85% - var(--mobile-carousel-gap));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .process__step {
    padding-right: 0;
  }

  .process__step::after {
    display: none !important;
  }

  .portfolio__grid {
    padding-bottom: 14px;
  }

  .contact__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.35rem;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .bureau__image {
    height: 270px;
  }

  .bureau__stats {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .bureau__stat {
    min-width: 0;
  }

  .bureau__stat-value {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    white-space: nowrap;
  }

  .bureau__stat-label {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.25;
  }

  .competencies__card,
  .services__item {
    padding: 24px 22px;
  }

  .services__item {
    gap: 16px;
  }

  .services__icon-shell {
    width: 46px;
    height: 46px;
    padding: 10px;
  }
}


@media (max-width: 360px) {
  .bureau__stats {
    gap: 6px;
  }

  .bureau__stat-value {
    font-size: 1.65rem;
  }

  .bureau__stat-label {
    font-size: 10px;
  }
}
