/* Выполненные проекты: доказательная подача реального производства. */

.home-projects {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0, 34, 76, .99), rgba(0, 73, 145, .95)),
    #002f68;
}

.home-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
}

.home-projects .shell {
  position: relative;
  z-index: 1;
}

.home-projects .section-heading h2,
.home-projects .section-heading > p {
  color: #fff;
}

.home-projects .section-index {
  color: #ffd94a;
}

.home-projects__grid,
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-project-card,
.project-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: #0b2d53;
  background: #fff;
  border: 1px solid rgba(8, 62, 119, .16);
  border-radius: 3px;
  box-shadow: 0 18px 42px rgba(0, 24, 56, .18);
}

.home-project-card__media,
.project-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dfe7ef;
}

.home-project-card__media img,
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.home-project-card:hover .home-project-card__media img,
.home-project-card:focus-within .home-project-card__media img,
.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img {
  transform: scale(1.025);
}

.home-project-card__body,
.project-card__body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.home-project-card__meta,
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 15px;
  color: #476785;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.home-project-card__meta span:first-child,
.project-card__meta span:first-child {
  color: #00509d;
}

.home-project-card h3,
.project-card h2 {
  margin: 0 0 12px;
  color: #082d57;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.15;
}

.home-project-card p,
.project-card p {
  margin: 0 0 20px;
  color: #3f5871;
  font-size: 15px;
  line-height: 1.55;
}

.home-project-card__facts,
.project-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 21px;
  padding: 0;
  list-style: none;
}

.home-project-card__facts li,
.project-card__facts li {
  padding: 7px 10px;
  color: #153e67;
  background: #eef4fa;
  border-left: 3px solid #f4c500;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.home-project-card__link,
.project-card__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: #0053a5;
  font-size: 14px;
  font-weight: 850;
}

.home-projects__all {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.home-projects__all .button {
  color: #002d63;
  background: #ffd83e;
}

.projects-page .breadcrumbs {
  background: #f4f7fa;
  border-bottom: 1px solid #dbe4ed;
}

.project-collection-hero .hero__inner,
.project-case-hero .hero__inner {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 42px;
  min-height: 480px;
}

.project-collection-hero h1,
.project-case-hero h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: clamp(39px, 5vw, 67px);
  line-height: .99;
}

.project-collection-hero h1 em,
.project-case-hero h1 em {
  display: block;
  color: #ffd83e;
  font-style: normal;
}

.project-hero__lead {
  max-width: 760px;
  margin: 0 0 27px;
  color: #e5eef7;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
}

.project-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #082c55;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 22px 55px rgba(0, 17, 40, .32);
}

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

.project-hero__stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  max-width: min(280px, calc(100% - 36px));
  padding: 13px 16px;
  color: #082d57;
  background: rgba(255, 216, 62, .96);
  border-left: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(0, 25, 58, .22);
}

.project-hero__stamp span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-hero__stamp strong {
  font-size: 16px;
  line-height: 1.25;
}

.project-proof-strip {
  color: #0a315d;
  background: #fff;
  border-bottom: 1px solid #dce5ee;
  box-shadow: 0 8px 24px rgba(0, 43, 91, .06);
}

.project-proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-proof-strip article {
  min-width: 0;
  padding: 24px 22px;
  border-right: 1px solid #dce5ee;
}

.project-proof-strip article:first-child {
  border-left: 1px solid #dce5ee;
}

.project-proof-strip span,
.project-proof-strip small {
  display: block;
}

.project-proof-strip span {
  margin-bottom: 6px;
  color: #56718c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-proof-strip strong {
  display: block;
  margin-bottom: 4px;
  color: #062f5d;
  font-size: 18px;
  line-height: 1.18;
}

.project-proof-strip small {
  color: #5b7085;
  font-size: 12px;
  line-height: 1.4;
}

.project-list-section {
  background: #f3f6f9;
}

.project-card {
  box-shadow: 0 14px 34px rgba(0, 43, 91, .1);
}

.project-list-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  padding: 23px 25px;
  color: #dbeafb;
  background: #07366a;
}

.project-list-note strong {
  color: #ffd83e;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.project-list-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.project-case {
  color: #193b5d;
  background: #fff;
}

.project-section {
  padding: 74px 0;
}

.project-section--muted {
  background: #f3f6f9;
  border-block: 1px solid #e1e8ef;
}

.project-section--blue {
  color: #fff;
  background: #063a74;
}

.project-section__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: 54px;
  align-items: start;
}

.project-section__grid--reverse {
  grid-template-columns: minmax(480px, 1.12fr) minmax(0, .88fr);
}

.project-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  color: #0758aa;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .065em;
}

.project-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: #f2c500;
}

.project-section--blue .project-kicker {
  color: #ffd83e;
}

.project-copy h2 {
  margin: 0 0 20px;
  color: #082f5d;
  font-size: clamp(30px, 3.5vw, 47px);
  line-height: 1.06;
}

.project-section--blue .project-copy h2,
.project-section--blue .project-copy > p,
.project-section--blue .project-copy > ul > li,
.project-section--blue .project-copy > ol > li {
  color: #fff;
}

.project-copy > p,
.project-copy li {
  font-size: 17px;
  line-height: 1.65;
}

.project-copy > p {
  margin: 0 0 18px;
}

.project-copy ul,
.project-copy ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 22px;
}

.project-copy li::marker {
  color: #e9bd00;
  font-weight: 900;
}

.project-result {
  margin-top: 28px;
  padding: 23px 25px;
  background: #fff8d7;
  border-left: 5px solid #edc200;
}

.project-result strong {
  display: block;
  margin-bottom: 7px;
  color: #06386e;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.project-result p {
  margin: 0;
  color: #274d71;
  font-size: 16px;
  line-height: 1.55;
}

.project-section--blue .project-result p {
  color: #274d71;
}

.project-tech {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e0e9;
  box-shadow: 0 14px 34px rgba(0, 44, 92, .09);
}

.project-tech__title {
  display: block;
  padding: 17px 20px;
  color: #fff;
  background: #073b73;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.project-tech dl {
  margin: 0;
}

.project-tech dl > div {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8ee;
}

.project-tech dl > div:last-child {
  border-bottom: 0;
}

.project-tech dt {
  color: #55718d;
  font-size: 13px;
  font-weight: 750;
}

.project-tech dd {
  margin: 0;
  color: #143c64;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.project-gallery {
  display: grid;
  gap: 16px;
}

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

.project-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery--feature {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
}

.project-gallery__stack {
  display: grid;
  gap: 16px;
}

.project-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  background: #dfe6ed;
  border: 1px solid rgba(8, 57, 105, .13);
  box-shadow: 0 12px 30px rgba(0, 37, 78, .08);
}

.project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.project-photo--landscape img {
  aspect-ratio: 4 / 3;
}

.project-photo--wide img {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.project-photo--portrait img {
  aspect-ratio: 3 / 4;
}

.project-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 15px 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 25, 56, .92));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.project-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  padding: 0;
  counter-reset: project-step;
  list-style: none;
}

.project-process li {
  position: relative;
  min-height: 190px;
  padding: 56px 20px 22px;
  color: #173e66;
  background: #fff;
  border-top: 4px solid #f1c400;
  box-shadow: 0 10px 26px rgba(0, 39, 84, .08);
  counter-increment: project-step;
}

.project-process li::before {
  content: "0" counter(project-step);
  position: absolute;
  top: 16px;
  left: 20px;
  color: #0757a7;
  font-size: 23px;
  font-weight: 900;
}

.project-process strong {
  display: block;
  margin-bottom: 8px;
  color: #082f5e;
  font-size: 17px;
  line-height: 1.25;
}

.project-process span {
  color: #536f8a;
  font-size: 13px;
  line-height: 1.5;
}

.project-contact {
  color: #fff;
  background: #063a74;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.project-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.project-contact h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(29px, 3.2vw, 43px);
  line-height: 1.08;
}

.project-contact p {
  max-width: 780px;
  margin: 0;
  color: #dceafb;
  font-size: 16px;
  line-height: 1.6;
}

.project-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.project-contact__actions .button--outline {
  color: #06386e;
  background: #fff;
  border-color: #fff;
  backdrop-filter: none;
}

@media (max-width: 1120px) {
  .project-collection-hero .hero__inner,
  .project-case-hero .hero__inner {
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  }

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

  .project-proof-strip article:nth-child(3) {
    border-left: 1px solid #dce5ee;
  }

  .project-proof-strip article:nth-child(-n+2) {
    border-bottom: 1px solid #dce5ee;
  }

  .project-section__grid,
  .project-section__grid--reverse {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 36px;
  }
}

@media (max-width: 980px) {
  .project-collection-hero .hero__inner,
  .project-case-hero .hero__inner,
  .project-section__grid,
  .project-section__grid--reverse,
  .project-contact__grid {
    grid-template-columns: 1fr;
  }

  .project-collection-hero .hero__inner,
  .project-case-hero .hero__inner {
    padding-top: 42px;
  }

  .project-hero__media {
    width: min(760px, 100%);
  }

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

  .project-contact__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .home-projects__grid,
  .project-card-grid,
  .project-gallery--feature,
  .project-gallery--three {
    grid-template-columns: 1fr;
  }

  .project-gallery--two {
    grid-template-columns: 1fr 1fr;
  }

  .project-section {
    padding: 56px 0;
  }

  .project-photo img {
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .home-project-card__body,
  .project-card__body {
    padding: 22px 20px 23px;
  }

  .project-collection-hero h1,
  .project-case-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .project-proof-strip__grid,
  .project-gallery--two,
  .project-process {
    grid-template-columns: 1fr;
  }

  .project-proof-strip article,
  .project-proof-strip article:first-child,
  .project-proof-strip article:nth-child(3) {
    border-right: 1px solid #dce5ee;
    border-bottom: 1px solid #dce5ee;
    border-left: 1px solid #dce5ee;
  }

  .project-list-note {
    grid-template-columns: 1fr;
  }

  .project-tech dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .project-photo--portrait img,
  .project-photo--landscape img {
    aspect-ratio: 4 / 3;
  }

  .project-contact__actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-project-card__media img,
  .project-card__media img {
    transition: none;
  }
}
