.hero {
  position: relative;
  overflow: hidden;
  min-height: 584px;
  background-image: url("../img/hero-bg.png");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 592px) minmax(520px, 730px);
  align-items: center;
  gap: 10px;
  width: min(var(--section-max), calc(100% - 178px));
  min-height: 584px;
  margin: 0 auto;
  padding: 33px 0 64px;
}

.eyebrow {
  display: none;
}

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

h1 {
  color: var(--ink);
  font-size: clamp(40px, 3.62vw, 52px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 em {
  color: #0b56ff;
  font-style: normal;
}

.hero-text {
  max-width: 592px;
  margin-top: 29px;
  color: #53627a;
  font-size: 22px;
  line-height: 1.5;
}

.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  margin-top: 29px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  padding: 0 22px;
  box-shadow: 0 14px 26px rgba(36, 95, 232, 0.22);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-link::after {
  width: 21px;
  height: 5px;
  margin-left: 12px;
  background: url("../img/arrow.svg") center / contain no-repeat;
  content: "";
  transition: transform 180ms ease;
}

.primary-link:hover {
  background: #174fd0;
  box-shadow: 0 16px 30px rgba(36, 95, 232, 0.28);
  transform: translateY(-2px);
}

.primary-link:hover::after {
  transform: translateX(4px);
}

.text-link::after {
  width: 21px;
  height: 5px;
  margin-left: 12px;
  background: url("../img/arrow.svg") center / contain no-repeat;
  content: "";
}

.products-section .text-link::after {
  width: 28px;
  height: 7px;
  margin-left: 0;
  background-image: url("../img/products/arrow.svg");
  filter: brightness(0) invert(1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 39px;
  max-width: 566px;
  margin-top: 70px;
}

.stats dt {
  color: var(--blue);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  transform-origin: center bottom;
}

.stats dt.is-counting {
  animation: number-pulse 520ms ease-in-out infinite alternate;
}

@keyframes number-pulse {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(-2px) scale(1.045);
  }
}

.stats dd {
  margin-top: 15px;
  color: #526179;
  font-size: 16px;
  font-weight: 400;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(730px, 100%);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 730 / 487;
  object-fit: contain;
  transform: scale(1.1);
  transform-origin: center;
  filter: drop-shadow(0 28px 42px rgba(18, 73, 216, 0.2));
}

.section-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.24;
  font-weight: 900;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.products-section {
  overflow: hidden;
  padding: 60px clamp(20px, 5vw, 74px) 70px;
  background: url("../img/products-bg.png") center bottom / 100% 100% no-repeat;
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 34px;
  align-items: stretch;
  width: min(var(--section-max), 100%);
  margin: 56px auto 0;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 512px;
  padding: 34px 38px 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.solution-card img {
  position: absolute;
  top: -95px;
  right: 0;
  bottom: 0;
  left: -30px;
  z-index: 0;
  width: 100%;
  height: 90%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.solution-card h3,
.solution-card p,
.solution-card .text-link {
  position: relative;
  z-index: 1;
}

.solution-card h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.solution-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.text-link {
  width: 116px;
  min-width: 116px;
  min-height: 34px;
  margin-top: 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 0 12px;
  box-shadow: none;
  white-space: nowrap;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.products-section .text-link::after {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.products-section .text-link:hover {
  background: #174fd0;
  box-shadow: 0 10px 20px rgba(36, 95, 232, 0.18);
  transform: translateY(-2px);
}

.products-section .text-link:hover::after {
  transform: translateX(4px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-self: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: span 2;
  height: 248px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 16px 14px 10px;
  box-shadow: 0 12px 30px rgba(31, 72, 150, 0.08);
}

.product-card.wide {
  grid-column: span 3;
}

.product-card-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 86px;
}

.product-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  color: #1f3153;
  font-size: 18px;
  line-height: 1.35;
}

.product-card small {
  color: #526179;
  font-size: 13px;
}

.product-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-card-media {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 96px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7faff;
}

.product-card-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  margin-top: 0;
  object-fit: contain;
  object-position: center;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid #e7eaf8;
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  padding: 0;
}

.icon-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.reasons-section {
  position: relative;
  overflow: hidden;
  padding: 68px clamp(20px, 7vw, 98px) 84px;
  background: url("../img/reasons-bg.png") center bottom / 100% 100% no-repeat;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
  width: min(var(--section-max), 100%);
  margin: 56px auto 0;
}

.reason-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(214, 224, 242, 0.8);
  border-radius: 10px;
  background: var(--white);
  padding: 42px 24px 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.reason-card h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.reason-card p {
  min-height: 72px;
  max-width: 210px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.reason-card img {
  position: absolute;
  right: auto;
  bottom: -10px;
  left: 0;
  width: 75%;
  max-height: 190px;
  margin: 0;
  object-fit: contain;
  object-position: left bottom;
}

.partners-section {
  position: relative;
  padding: 70px 0 150px;
  background: url("../img/partner-bg.png") center bottom / 100% 100% no-repeat;
}

.partner-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100vw;
  max-width: 100vw;
  margin: 44px auto 0;
  overflow: hidden;
}

.partner-row {
  width: 100%;
  overflow: hidden;
}

.partner-track {
  --partner-shift: 50%;
  display: flex;
  gap: 12px;
  width: max-content;
  animation: partner-scroll-left 34s linear infinite;
  animation-delay: -8s;
  will-change: transform;
}

.partner-row-2 .partner-track {
  animation-name: partner-scroll-right;
  animation-duration: 38s;
  animation-delay: -18s;
}

.partner-row-3 .partner-track {
  animation-duration: 42s;
  animation-delay: -27s;
}

.partner-grid:hover .partner-track {
  animation-play-state: paused;
}

.partner-grid span {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(120px, 7vw, 220px);
  min-height: 62px;
  border: 1px solid rgba(231, 234, 248, 0.75);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  transition: transform 160ms ease;
}

.partner-grid img {
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

@keyframes partner-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--partner-shift)));
  }
}

@keyframes partner-scroll-right {
  from {
    transform: translateX(calc(-1 * var(--partner-shift)));
  }

  to {
    transform: translateX(0);
  }
}

.hero-shield,
.solution-card img,
.product-card-media img {
  transition: transform 520ms ease;
}

.hero-shield:hover {
  transform: translateY(-4px) scale(1.015);
}

.product-card,
.product-card:hover,
.ddi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(31, 72, 150, 0.12);
}

.product-card:hover .product-card-media img {
  transform: scale(1.035);
}

@media (min-width: 1600px) {
  .hero {
    min-height: clamp(640px, 40vw, 760px);
    background-size: 100% 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(500px, 0.86fr) minmax(640px, 1.14fr);
    gap: clamp(76px, 6vw, 132px);
    width: min(var(--section-wide-max), calc(100% - 128px));
    min-height: clamp(640px, 40vw, 760px);
    padding-block: 78px 66px;
  }

  h1 {
    font-size: clamp(64px, 4.1vw, 72px);
  }

  .hero-text {
    max-width: 660px;
    font-size: 19px;
  }

  .stats {
    max-width: 610px;
  }

  .hero-visual {
    width: min(780px, 100%);
  }

  .products-layout,
  .reason-grid {
    width: min(var(--section-wide-max), 100%);
  }

  .solution-card h3 {
    font-size: 22px;
  }

  .solution-card p {
    max-width: 420px;
    font-size: 16px;
    line-height: 1.8;
  }

  .solution-card .text-link {
    font-size: 15px;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .reason-card h3 {
    font-size: 22px;
  }

  .product-card small {
    font-size: 14px;
  }

  .product-card p,
  .reason-card p {
    font-size: 15px;
  }

  .reason-card p {
    max-width: 260px;
    line-height: 1.8;
  }

  .partner-grid {
    width: 100vw;
    max-width: 100vw;
  }
}

@media (min-width: 1920px) {
  .hero {
    background-size: 100% 100%;
  }

  .solution-card h3 {
    font-size: 24px;
  }

  .solution-card p {
    font-size: 17px;
  }

  .product-card h3 {
    font-size: 21px;
  }

  .reason-card h3 {
    font-size: 24px;
  }

  .product-card p,
  .reason-card p {
    font-size: 16px;
  }
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .solution-card {
    display: flex;
    min-height: 430px;
  }

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

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0 52px;
  }

  .hero-visual {
    justify-self: center;
    width: min(520px, 100%);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

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

  .product-card,
  .product-card.wide {
    grid-column: span 1;
  }

  .solution-card {
    display: flex;
    min-height: 390px;
    padding: 28px 24px 32px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 48px 0 40px;
  }

  h1 {
    font-size: 38px;
  }

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

  .stats {
    gap: 18px 12px;
  }

  .products-section,
  .reasons-section,
  .partners-section {
    padding-inline: 16px;
  }

  .partners-section {
    padding-inline: 0;
  }

  .product-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    height: auto;
    min-height: 228px;
  }

  .reason-card {
    min-height: 400px;
  }

  .reason-card img {
    left: 0;
    width: 86%;
    max-height: 210px;
  }
}
