.homepage #hero {
  opacity: 1;
}

.homepage .hero-subtitle {
  max-width: 64ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.homepage :is(#portfolio, #service, #about_us, #write_us) {
  margin-top: clamp(64px, 9vw, 144px);
}

.homepage .home-company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 52px);
  width: 100%;
}

.home-company-stats .about_us-info_block {
  width: auto;
}

.home-company-stats [data-count-up] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .homepage .home-company-stats {
    grid-template-columns: 1fr;
  }
}

.homepage #portfolio {
  overflow: visible;
}

.homepage #our_clients {
  margin-top: clamp(52px, 7vw, 100px);
}

.homepage :is(#our_clients, #portfolio, #service, #about_us) .section-header {
  margin-bottom: clamp(20px, 3vw, 40px);
}

.home-clients-list ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px clamp(24px, 5vw, 72px);
  margin-top: 20px;
}

.home-clients-list img {
  display: block;
  width: clamp(88px, 10vw, 125px);
  height: 34px;
  filter: grayscale(1);
  opacity: .62;
  object-fit: contain;
}

@media (hover: hover) {
  .home-clients-list li:hover img {
    filter: none;
    opacity: 1;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-clients-list img {
    transition: filter .22s ease, opacity .22s ease;
  }
}

.home-section-title {
  margin-bottom: 28px;
  font: 400 clamp(36px, 5vw, 68px)/1.06 helios, Arial, sans-serif;
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
}


.home-project a {
  display: block;
}

.home-project img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--cover-radius);
}

.home-project img.home-project-cover-inset {
  box-sizing: border-box;
  padding: clamp(10px, 1.2vw, 18px);
  object-fit: contain;
  background: #f6f5f4;
}

.home-project h3 {
  font: 400 clamp(26px, 3vw, 42px)/1.12 helios, Arial, sans-serif;
}

.home-project h3 {
  margin-top: 14px;
}

.home-project p {
  margin-top: 8px;
  max-width: 60ch;
}

.home-text-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.home-project-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 44px);
}

.home-all-projects {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 26px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--black_main);
  font-weight: 700;
}

.home-all-projects:is(:hover, :focus-visible) {
  color: var(--black_main);
  background: #fff0ef;
}

.home-all-projects:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.homepage #service {
  padding-block: clamp(34px, 5vw, 72px);
  background: #f2f5f8;
}

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

.home-service-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 36px);
  border-radius: clamp(20px, 2.25vw, 32px);
  background: #fff;
}

.home-service-card h3 {
  font: 700 clamp(25px, 2.4vw, 36px)/1.14 PTSans, Arial, sans-serif;
}

.home-service-card p {
  max-width: 31ch;
  margin-top: 9px;
  color: #47515c;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.38;
}

.home-service-card:is(:hover, :focus-visible) {
  color: inherit;
}

.home-service-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.home-service-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

.home-service-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  background: #f2f5f8;
  color: var(--black_main);
}

.home-service-card:is(:hover, :focus-visible) .home-service-arrow {
  background: #e9eef4;
}

.home-service-card .home-service-arrow .internal-link-icon {
  width: 18px;
  height: 18px;
  transform: none;
  transition: none;
}

.home-service-icon {
  width: clamp(92px, 10vw, 148px);
}

.home-service-icon-launch {
  --icon-state-mask:
    radial-gradient(ellipse 17% 7% at 29% 25%, #000 74%, transparent 100%),
    radial-gradient(ellipse 25% 29% at 45% 56%, #000 65%, transparent 100%);
}

.home-service-icon-improve {
  --icon-state-mask: radial-gradient(ellipse 23% 26% at 66% 33%, #000 58%, transparent 100%);
}

.home-service-icon-automate {
  --icon-state-mask: radial-gradient(ellipse 24% 16% at 41% 43%, #000 74%, transparent 100%);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-service-card {
    transform: translateZ(0) scale(1);
    transition: transform .24s ease-out;
  }

  .home-service-card:hover {
    transform: translateZ(0) scale(1.02);
  }
}

.homepage :is(.home-project a, .home-text-link, .hero-actions a):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .home-project-grid,
  .home-service-grid {
    grid-template-columns: 1fr;
  }
}




.homepage :is(.home-contact-columns, .home-footer-columns) {
  --contact-padding: clamp(22px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-inline: var(--contact-padding);
}

.home-footer-columns .footer-subcontainer:first-child {
  width: 100%;
}

.home-footer-columns .footer-subcontainer--wrapping {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 44px);
}

.home-footer-columns .footer-column {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .homepage :is(.home-contact-columns, .home-footer-columns) {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-intro .homepage #hero {
    animation: home-hero-enter .75s cubic-bezier(.22, .65, .3, 1) var(--home-hero-delay, 0ms) both;
  }

  .home-intro .homepage :is(#our_clients, #home-projects-title, .home-project-grid > article, .home-project-actions) {
    --home-section-opacity: 0;
    animation: home-section-appear .75s ease-out var(--home-hero-delay, 0ms) both;
  }

  .home-intro .homepage :is(#hero, #our_clients, #home-projects-title, .home-project-grid > article, .home-project-actions):focus-within,
  .home-intro .homepage:has(.header-desktop:focus-within) :is(#hero, #our_clients, #home-projects-title, .home-project-grid > article, .home-project-actions) {
    animation: none;
  }
}

@media (min-width: 997px) and (prefers-reduced-motion: no-preference) {
  .home-intro .homepage {
    --home-hero-delay: 1.3s;
  }

  .home-intro .homepage .header-desktop {
    animation: fullWidth var(--home-hero-delay) cubic-bezier(.22, .65, .3, 1) backwards;
  }

  .home-intro .homepage .header-desktop .nav-container {
    animation: home-nav-enter .75s ease-out var(--home-hero-delay) both;
  }

  .home-intro .homepage .header-desktop:focus-within,
  .home-intro .homepage .header-desktop:focus-within .nav-container {
    animation: none;
  }
}

@keyframes home-nav-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes home-hero-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .home-section-enter {
    animation: home-scroll-appear .65s cubic-bezier(.22, .65, .3, 1);
  }

  .home-section-enter:focus-within {
    animation: none;
  }
}

@keyframes home-section-appear {
  from { opacity: var(--home-section-opacity, .62); }
  to { opacity: 1; }
}

@keyframes home-scroll-appear {
  from { opacity: .55; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 760px) {
  .homepage .home-footer-columns {
    row-gap: 28px;
  }

  .home-footer-columns .footer-subcontainer--wrapping {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
  }

  .home-footer-columns .footer-subcontainer--wrapping .footer-column,
  .home-contact-columns .contacts-subcontainer:last-child {
    width: 100%;
  }

  .home-footer-columns .footer-column h5 {
    font-weight: 700;
  }
}

@media (max-width: 996px) {
  .homepage footer {
    margin-bottom: max(100px, calc(84px + env(safe-area-inset-bottom)));
  }
}
