/* /seo/ — Figma "SEO_V3" (3254:23874) */

.types-block--business .types-block-heading {
  margin: 0 0 80px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
}

.types-block--business .types-block-intro {
  margin: 0 0 120px calc(100% / 3);
}

.types-block--business .types-block-intro p {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.types-block--business .types-block-title {
  margin-top: 60px;
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.types-block--business .types-animation {
  margin-top: 30px;
}

.seo-packages .offer-descr .offer-price {
  margin: 0 0 20px;
  color: var(--txt-gray);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

@media screen and (max-width: 1024px) {
  .types-block--business .types-block-intro {
    margin-left: 0;
    margin-bottom: 60px;
  }
}

@media screen and (max-width: 890px) {
  .types-block--business .types-block-heading {
    margin-bottom: 40px;
    font-size: 32px;
  }

  .types-block--business .types-block-intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  .types-block--business .types-block-title {
    font-size: 22px;
  }

  .seo-packages .offer-descr .offer-price {
    font-size: 16px;
  }
}

/* Hero stats: four equal columns (Figma SEO_V3) */
@media screen and (min-width: 641px) {
  .first-block.seo .flex-block-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
  }
}

/* "A full range of expert SEO services…" */
@media screen and (min-width: 1025px) {
  .section.bg-gray .block-title h2 {
    font-size: 48px;
    line-height: 1.4;
  }

  /* Our Works → Business Type: 120px */
  #our-works .our-works-container {
    padding-bottom: 0;
    margin-bottom: 120px;
  }
}

/* Business Type rows */
.types-block--business .types-img svg {
  display: block;
  width: 32px;
  height: 32px;
}

.types-block--business .types-more-btn {
  display: none;
}

@media screen and (min-width: 1025px) {
  .types-block--business {
    padding-bottom: 120px;
  }

  .types-block--business .types-item {
    display: grid;
    grid-template-columns:
      minmax(0, 152fr) minmax(0, 421fr) minmax(0, 40fr) minmax(0, 574fr)
      minmax(0, 192fr) minmax(0, 308fr) minmax(62px, 113fr);
    align-items: start;
    padding: 30px 0 60px;
    transition: background-color 0.2s ease;
  }

  .types-block--business .types-number,
  .types-block--business .types-more-items {
    display: contents;
  }

  .types-block--business .types-number span {
    grid-column: 1;
    transition: transform 0.2s ease;
  }

  .types-block--business .types-title {
    grid-column: 2;
    margin: 0;
    font-size: 48px;
    line-height: 1.4;
  }

  .types-block--business .types-description {
    grid-column: 4;
    margin: 0;
  }

  .types-block--business .types-submenu {
    grid-column: 6;
  }

  .types-block--business .types-item .types-img,
  .types-block--business .types-item:hover .types-img {
    grid-column: 7;
    justify-self: end;
    width: 32px;
    height: 32px;
    margin-right: 30px;
    background: none;
    color: var(--txt-white);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .types-block--business .types-item:hover,
  .types-block--business .types-item:focus-visible {
    background: var(--outher-dark-gray);
  }

  .types-block--business .types-item:hover .types-number span,
  .types-block--business .types-item:focus-visible .types-number span {
    transform: translateX(30px);
  }

  .types-block--business .types-item:hover .types-img,
  .types-block--business .types-item:focus-visible .types-img {
    opacity: 1;
  }

  .types-block--business .types-item:hover .types-title {
    color: inherit;
  }

  .types-block--business .types-block-title {
    margin-top: 120px;
  }

  .types-block--business .types-animation {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 1168px) and (min-width: 1025px) {
  .types-block--business .types-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 1024px) {
  .types-block--business .types-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 14px 40px;
    border: 1px solid var(--txt-white);
    border-radius: 42px;
    color: var(--txt-white);
    font-family: Manrope, var(--font-family), sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }
}

@media screen and (max-width: 1024px) and (min-width: 641px) {
  .types-block--business .types-more-items {
    flex-wrap: wrap;
  }

  .types-block--business .types-more-btn {
    flex-basis: 100%;
  }
}

/* Marketplaces: sticky intro */
@media screen and (min-width: 1025px) {
  .seo-marketplaces__intro {
    position: sticky;
    top: 40px;
    align-self: start;
  }
}

/* SEO Services Offered (packages) */
.seo-packages .swiper-wrapper {
  align-items: stretch;
}

.seo-packages .swiper-slide.seo-package {
  display: flex;
  flex-direction: column;
  height: auto;
}

.seo-package .offer-img {
  margin-bottom: 78px;
}

.seo-package__body {
  margin-top: auto;
}

.seo-package__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.seo-package .seo-package__title h3 {
  margin: 0 0 10px;
}

.seo-packages .seo-package .offer-price {
  margin: 0;
}

.seo-package__toggle {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--background-light);
  color: var(--txt-black);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seo-package__toggle svg {
  transition: transform 0.2s ease;
}

.seo-package:hover .seo-package__toggle,
.seo-package__toggle:focus-visible,
.seo-package.is-open .seo-package__toggle {
  background: var(--purple-normal);
  color: var(--txt-white);
}

.seo-package.is-open .seo-package__toggle svg {
  transform: rotate(180deg);
}

.seo-package__details {
  display: none;
  margin-top: 20px;
}

.seo-package.is-open .seo-package__details {
  display: block;
}

.seo-package__text {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--txt-black);
}

.seo-package__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 40px;
  border: 1px solid var(--purple-normal);
  border-radius: 43px;
  color: var(--purple-normal);
  font-family: Manrope, var(--font-family), sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seo-package__btn:hover,
.seo-package__btn:focus-visible {
  background: var(--purple-normal);
  color: var(--txt-white);
}

@media screen and (max-width: 767px) {
  .seo-packages .seo-package {
    padding: 24px;
  }

  .seo-package .offer-img,
  .seo-package__toggle {
    display: none;
  }

  .seo-package__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 0;
  }

  .seo-package__head {
    display: block;
  }

  .seo-package .seo-package__title h3 {
    margin-bottom: 10px;
    color: var(--purple-normal);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
  }

  .seo-packages .seo-package .offer-price {
    color: var(--purple-normal);
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .seo-package__details,
  .seo-package.is-open .seo-package__details {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    margin-top: 20px;
  }

  .seo-package__text {
    margin: 0;
  }

  .seo-package__btn {
    margin-top: auto;
  }
}

/* Our Works: case without metrics keeps its description in the right column */
@media screen and (min-width: 750px) {
  #our-works .item-bottom > .description:only-child {
    margin-left: auto;
  }
}
