.w-layout-grid {
  grid-row-gap: 16px;
  grid-column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.animations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* меньшее расстояние между анимациями */
  width: 100%;
  padding: 32px 0;
}

.anim-video {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

body {
  color: #000;
  font-family: Geist, sans-serif;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Accessible, non-visual heading text for SEO */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.main {
  background-color: #f2f2f2;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto; /* Включаем вертикальную прокрутку */
}

html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* new inner container for max width centering */
.container {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.header-style {
  grid-column-gap: 8px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 32px;
  text-decoration: none;
  display: grid;
}

.column {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.logo {
  object-fit: cover;
  min-height: 45px;
  overflow: hidden;
}

.column-2 {
  grid-column-gap: 10px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 799px;
  padding-right: 40px;
  text-decoration: none;
  display: flex;
}

.text {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 27px;
  text-decoration: none;
}

.column-3 {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 338px;
  text-decoration: none;
  display: flex;
}

.text-list {
  color: #000;
  width: 100%;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 400;
  line-height: 27px;
  text-decoration: none;
  position: relative;
  z-index: 2; /* ensures text is above media */
}

.video {
  grid-row-gap: 10px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  text-decoration: none;
  display: flex;
}

.man-with-coffee-cup-sitting-on-chair-1 {
  object-fit: cover;
  width: 100%;
  max-height: 100%;
}

.wwd {
  grid-row-gap: 32px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  text-decoration: none;
  display: flex;
}

.h2 {
  color: #000;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
  position: relative;
  z-index: 2; /* ensures section titles above media */
}

/* Only for the animated-2d page title */
.h2-animated2d {
  margin-bottom: 12px;
}
.grid {
  grid-column-gap: 8px;
  grid-row-gap: 24px;
  flex-wrap: wrap;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: grid;
}

.card {
  grid-row-gap: 16px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.card-img {
  aspect-ratio: 1 / 1; /* фиксированный aspect ratio */
  display: flex; /* центрирование контента */
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: transparent;
  overflow: visible; /* чтобы контент не выходил за границы */
}

.card-img.spline {
  position: relative;
  width: 100%;
  margin-left: 0;
  overflow: visible;   /* avoid leaking scaled content outside card on all viewports */
}

.pricing {
  grid-column-gap: 8px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  place-items: start stretch;
  width: 100%;
  padding: 120px 32px;
  display: grid;
}

.card-2 {
  grid-row-gap: 32px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.card-content {
  grid-row-gap: 24px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.card-top {
  grid-column-gap: 16px;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.h2-pricing {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
}

.h2-pricing-2 {
  opacity: .4;
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-decoration: none;
}

.button-style {
  grid-column-gap: 10px;
  background-color: #ececec;
  border: 1px solid #0000001a;
  border-radius: 16px;
  flex: 0 auto;
  justify-content: flex-start;
  align-items: center;
  padding: 4px;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4.5288px 19.03px #00000005, 0 12.5216px 31.14px #0000000a, inset 0 2px #fff;
}

.decoration-1 {
  filter: blur(32px);
  object-fit: fill;
  position: absolute;
  top: -44px;
  left: 101px;
  overflow: visible;
}

.decoration-2 {
  position: absolute;
  top: -18px;
  left: 248.766px;
}

.decoration-3 {
  filter: blur(32px);
  position: absolute;
  top: -36px;
  left: 40px;
  overflow: visible;
}

.decoration-4 {
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  object-fit: cover;
  position: absolute;
  top: 21.9805px;
  left: 209.098px;
}

.button-content {
  grid-column-gap: 15px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 1px #fff, inset 0 0 2px #0003, 0 6px 13px #0000000d, 0 24px 24px #0000000a, 0 54px 33px #00000008, 0 96px 39px #00000003, 0 151px 42px #0000;
}

.text-6 {
  color: #000;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 27px;
  text-decoration: none;
}

.decoration-5 {
  filter: blur(32px);
  object-fit: cover;
  position: absolute;
  top: 16px;
  left: -19px;
}

.decoration-6 {
  filter: blur(32px);
  object-fit: cover;
  position: absolute;
  top: -68.0195px;
  left: 149.098px;
}

.card-content-2 {
  grid-row-gap: 24px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 436px;
  text-decoration: none;
  display: flex;
}

.decoration-7 {
  filter: blur(32px);
  object-fit: cover;
  position: absolute;
  top: -44px;
  left: 251px;
}

.decoration-8 {
  filter: blur(50px);
  object-fit: cover;
  position: absolute;
  top: 21.9805px;
  left: 98.0966px;
}

.footer {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
  text-decoration: none;
  display: flex;
}

.text-7 {
  color: #000;
  text-align: right;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 27px;
  text-decoration: none;
}

.footer-2 {
  object-fit: cover;
  padding: 32px;
  overflow: hidden;
}

.code-embed {
  height: 100%;
  min-height: 100%;
}

.logos {
  grid-row-gap: 32px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 32px 32px 120px;
  text-decoration: none;
  display: flex;
}

.logos-grid {
  grid-column-gap: 100px;
  grid-row-gap: 100px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  width: 100%;
}

.logo-img {
  mix-blend-mode: multiply;
  max-width: 80%;
}

.logo-img.hp {
  max-width: 40%;
}

.logo-img.pg {
  max-width: 60%;
}

.footer-animation {
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.footer-img, .main-video {
  width: 100%;
}

/* mask Spline badge inside iframe */
.spline-cover {
  display: none; /* per request: ignore and hide the badge cover */
}

/* ensure iframe scales down to avoid side cropping and stays under cover */
.card-img.spline .code-embed {
  position: absolute; /* fill the card-img regardless of % height issues */
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
}

.card-img.spline iframe {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 500%;         /* enlarge ~5x horizontally */
  max-width: none;
  display: block;
  border: 0;
  transform: translateX(-50%); /* center inside container */
  transform-origin: center center;
}

.email-link {
  color: #000;
  text-decoration: none;
}

.faq {
  grid-column-gap: 8px;
  grid-row-gap: 32px;
  flex-flow: column;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: flex-start;
  place-items: start stretch;
  width: 100%;
  padding: 0 32px 120px;
  display: flex;
}

.faq-grid {
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  grid-template-rows: auto;
  width: 100%;
}

.faq-grid-col {
  padding-right: 56px;
}

.droplist.w--open {
  background-color: #ddd0;
  position: relative;
}

.faq-item-toggle {
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  display: flex;
}

/* Rotate chevron when dropdown is open (no animation) */
.faq-item-toggle img {
  transform: rotate(0deg);
  transition: none;
}
.faq-item.w--open .faq-item-toggle img,
.faq-item-toggle.w--open img {
  transform: rotate(180deg);
}

.faq-item-toggle.w--open {
  width: 100%;
  padding: 16px 0;
}

.faq-item {
  width: 100%;
}

@media screen and (max-width: 991px) {
  .header-style {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  }

  .logos-grid {
    grid-column-gap: 60px;
    grid-row-gap: 60px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid-col {
    padding-right: 0;
  }
}

@media screen and (max-width: 767px) {
  .header-style {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  /* Avoid right cropping on mobile: reduce Rive scale on small screens */
  .card-img.spline .rive-animation {
    transform: scale(1.0);
    transform-origin: center center;
  }

  .column-2 {
    padding-right: 0;
  }

  .text, .text-list {
    font-size: 19px;
    line-height: 26px;
  }

  .wwd {
    padding-left: 20px;
    padding-right: 20px;
  }

  .h2 {
    font-size: 24px;
    line-height: 32px;
  }

  /* Make hero video larger on mobile */
  .main-video {
    aspect-ratio: 4 / 3;
  }

  /* Stack What we do cards in one column on mobile */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Preserve native aspect ratio for Illustrations and icons image on mobile */
  .grid .card:nth-child(4) .man-with-coffee-cup-sitting-on-chair-1 {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .pricing {
    grid-row-gap: 56px;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    padding: 80px 20px;
  }

  .card-2 {
    grid-row-gap: 24px;
  }

  .h2-pricing, .h2-pricing-2 {
    font-size: 24px;
    line-height: 32px;
  }

  .text-6 {
    font-size: 19px;
    line-height: 26px;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .text-7 {
    font-size: 19px;
    line-height: 26px;
  }

  .logos {
    padding: 20px 20px 80px;
  }

  .logos-grid {
    grid-column-gap: 8px;
    grid-row-gap: 8px;
  }

  .footer-animation {
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq {
    grid-row-gap: 24px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .faq-item-toggle {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Bulleted lists styling inside FAQ answers */
.droplist .bullets {
  margin: 8px 0 12px;
  padding-left: 20px;
}
.droplist .bullets li {
  list-style: disc;
  color: #000;
  font-size: 19px;
  line-height: 27px;
  margin-bottom: 6px;
}

@media screen and (max-width: 479px) {
  .footer {
    flex-flow: wrap;
  }
}

#w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610203-cb3337da {
  grid-area: span 1 / span 2 / span 1 / span 2;
}

#w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610205-cb3337da {
  grid-area: 1 / 3 / 2 / 10;
}

#w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610208-cb3337da {
  grid-area: 1 / 10 / 2 / 13;
}

#w-node-_74a90d72-57f8-0616-1762-9c13b52e0f70-cb3337da, #w-node-ea86bafc-060b-e1f0-7015-c06642b83546-cb3337da, #w-node-d9fadc25-e5af-f808-9297-aa0593a1ed60-cb3337da, #w-node-eb20a666-b691-fe58-2379-2f7808fa5d6c-cb3337da, #w-node-_839b237b-dbb9-de7c-8377-6bde28dac513-cb3337da, #w-node-c042409c-a257-1b0a-2c84-61218ec02109-cb3337da {
  place-self: center;
}

@media screen and (max-width: 991px) {
  #w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610205-cb3337da {
    grid-area: 2 / 1 / 3 / 5;
  }

  #w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610208-cb3337da {
    grid-area: 2 / 5 / 3 / 7;
  }
}

@media screen and (max-width: 767px) {
  #w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610203-cb3337da {
    grid-column: span 1 / span 1;
  }

  #w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610205-cb3337da {
    grid-column-end: 2;
  }

  #w-node-aa974707-8f1f-2e9a-d7e2-8b52f2610208-cb3337da {
    grid-area: 3 / 1 / 4 / 2;
  }
}

/* Video sizing and centering */
.main-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: transparent;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.card-video {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Scale down Animated 2D (first card) */
.grid .card:nth-child(1) .card-video {
  transform: scale(0.9);
  transform-origin: center center;
}

/* Rive canvas should fill the card container */
.rive-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Ensure Rive container has height like in test */
.rive-animation {
  min-height: 400px;
  scale:0.9;
}

/* Ensure canvas inside Rive fills its container */
.rive-animation canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Make the Rive wrapper span the card area so percentage canvas sizing resolves */
.card-img.spline .rive-animation {
  width: 100%;
  height: 100%;
  transform: scale(1.2);
  transform-origin: center center;
}
