/* Hero */
.hero-section__header {
  margin: 0 auto 24px;
}

.hero-section__subtitle {
  margin: 0 auto 32px;
  color: var(--color-text-secondary);
}

.hero-section__text {
  margin: 0 auto 16px;
  color: var(--color-text-secondary);
  line-height: 28px;
}

.hero-section__text:last-of-type {
  margin-bottom: 40px;
}

.hero-section__button {
  margin: 0 auto;
}

/* What we do */
.what-section {
  padding-top: 170px;
  padding-bottom: 170px;
}

.what-section__header {
  margin-bottom: 32px;
  line-height: 64px;
  font-weight: 600;
}

.what-section__text {
  margin-bottom: 24px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

.what-section__text:last-child {
  margin-bottom: 0;
}

.what-section__col {
  padding-top: 30px;
}

.what-section__col-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-section__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-section__icon {
  max-width: 100%;
  height: auto;
}

/* Process table */
.process-section {
  padding-top: 0;
  padding-bottom: 170px;
}

.process-section__header {
  margin-bottom: 56px;
}

.process-section__table-wrapper {
  overflow-x: auto;
}

.process-section__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.process-section__table th {
  padding: 20px 24px;
  background-color: var(--color-primary);
  color: var(--color-tertiary-light);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}

.process-section__table th:first-child {
  border-radius: 16px 0 0 0;
}

.process-section__table th:last-child {
  border-radius: 0 16px 0 0;
}

.process-section__table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-secondary);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  vertical-align: top;
}

.process-section__table tr:last-child td {
  border-bottom: none;
}

.process-section__table tbody tr {
  background-color: var(--color-tertiary-light);
}

.process-section__table tbody tr:nth-child(even) {
  background-color: var(--color-secondary-light);
}

.process-section__stage {
  white-space: nowrap;
  color: var(--color-text-primary);
}

/* Why it works */
.why-section {
  padding-bottom: 200px;
}

.why-section__header {
  max-width: 983px;
  margin: 0 auto 56px;
  text-align: center;
}

.why-section__cards {
  margin: 0 auto;
  gap: 32px;
  max-width: 1556px;
}

.why-section__cards .cards__item {
  margin-top: 0;
  padding: 0;
}

.why-section__card {
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
  padding: 31px;
  background-color: var(--color-tertiary-light);
  border: 1px solid var(--color-secondary);
  border-radius: 32px;
  width: 100%;
}

.why-section__card-img {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
}

.why-section__card-title {
  margin-bottom: 16px;
  font-weight: 500;
}

/* Contrast sections (shared with other pages) */
.contrast-section {
  background: var(--color-gradiend-primary);
  padding-bottom: 200px;
}

.button--white {
  background-image: none;
  background-color: var(--color-tertiary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-tertiary-light);
  border-radius: 400px;
}

.button--white:hover {
  background-image: none;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary-light);
}

.button--white .button__text::before {
  filter: invert(48%) sepia(79%) saturate(1552%) hue-rotate(186deg) brightness(101%) contrast(106%);
}

/* When to contact */
.when-section {
  padding-top: 175px;
  padding-bottom: 200px;
}

.when-section__header {
  margin-bottom: 56px;
  color: var(--color-tertiary-light);
  font-weight: 600;
}

.when-section__list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.when-section__item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.when-section__item:last-child {
  margin-bottom: 0;
}

.when-section__item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-tertiary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.when-section__item-text {
  color: var(--color-tertiary-light);
  line-height: 28px;
}

/* Formats */
.formats-section {
  padding-top: 175px;
  padding-bottom: 170px;
}

.formats-section__header {
  margin-bottom: 56px;
}

.formats-section__cards {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.formats-section__card {
  flex: 1;
  max-width: 380px;
  padding: 40px 32px;
  background-color: var(--color-tertiary-light);
  border: 1px solid var(--color-secondary);
  border-radius: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.formats-section__card-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  width: fit-content;
}

.formats-section__card-title {
  margin-bottom: 16px;
}

.formats-section__card-text {
  color: var(--color-text-secondary);
  line-height: 26px;
}

/* CTA */
.cta-section {
  padding-top: 175px;
  padding-bottom: 200px;
}

.page-wrapper-main--no-bottom-padding {
  padding-bottom: 0;
}

.cta-section__header {
  margin-bottom: 24px;
  color: var(--color-tertiary-light);
  font-weight: 600;
}

.cta-section__text {
  margin-bottom: 40px;
  color: var(--color-tertiary-light);
  line-height: 28px;
}

.cta-section__button {
  margin: 0 auto 32px;
}

.cta-section__tagline {
  color: var(--color-tertiary-light);
  opacity: 0.8;
}

/* Responsive: tablet */
@media screen and (max-width: 1199px) {
  .contrast-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .what-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .what-section__header {
    font-weight: 600;
    line-height: 56px;
  }

  .process-section {
    padding-bottom: 160px;
  }

  .why-section__cards {
    gap: 24px;
  }

  .why-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .when-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .formats-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .formats-section__cards {
    gap: 24px;
  }

  .cta-section {
    padding-top: 160px;
    padding-bottom: 160px;
  }

  .cards__item {
    max-width: 49%;
  }
}

/* Responsive: mobile */
@media screen and (max-width: 767px) {
  .page-wrapper-main {
    overflow-x: hidden;
  }

  .contrast-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .page-wrapper-main--no-bottom-padding {
    padding-bottom: 0;
  }

  .hero-section .main-container__column_10,
  .cta-section .main-container__column_8 {
    width: 100%;
  }

  .hero-section {
    overflow: hidden;
  }

  /* Block 2: What we do — text column на всю ширину */
  .what-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .what-section__col {
    width: 100%;
    padding-top: 0;
  }

  .what-section__header {
    text-align: center;
    margin-bottom: 24px;
    line-height: 32px;
  }

  .what-section__col-visual {
    display: none;
  }

  /* Block 3: Process table */
  .process-section {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .process-section__header {
    margin-bottom: 24px;
  }

  .process-section__table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
  }

  .process-section__table {
    min-width: 0;
    width: 100%;
  }

  .process-section__table th {
    font-size: 13px;
    padding: 12px 10px;
    line-height: 20px;
  }

  .process-section__table td {
    font-size: 13px;
    padding: 12px 10px;
    line-height: 20px;
  }

  /* Block 4: Why it works — карточки */
  .why-section {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .why-section__header {
    text-align: center;
    width: 100%;
    margin-bottom: 32px;
  }

  .why-section__cards {
    margin-top: 0;
    margin-bottom: 0;
    gap: 12px;
  }

  .why-section__card {
    padding: 20px;
    border-radius: 16px;
  }

  .why-section__card-img {
    display: none;
  }

  .why-section__card-title {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 28px;
  }

  .why-section__card-text {
    font-size: 15px;
    line-height: 24px;
    color: var(--color-text-secondary);
  }

  .cards__item {
    max-width: initial;
    margin-top: 0;
    padding: 0;
  }

  /* Block 5: When to contact */
  .when-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .when-section__header {
    margin-bottom: 32px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .when-section__item {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .when-section__item-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-top: 2px;
  }

  .when-section__item-text {
    font-size: 16px;
    line-height: 24px;
  }

  /* Block 6: Formats */
  .formats-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .formats-section__header {
    margin-bottom: 32px;
  }

  .formats-section__cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .formats-section__card {
    max-width: 100%;
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .formats-section__card-badge {
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  /* Block 7: CTA */
  .cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta-section__header {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }

  .cta-section__text {
    margin-bottom: 24px;
  }
}

@media screen and (max-width: 568px) {
  .page-section-main:first-child {
    padding-top: 140px;
  }

  .hero-section__header {
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-section__column {
    width: 100%;
  }

  .hero-section__subtitle {
    font-size: 18px;
    line-height: 28px;
    max-width: 100%;
  }

  .hero-section__text {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
  }

  .hero-section__text:last-of-type {
    margin-bottom: 32px;
  }

  .button__text::before {
    display: none;
  }

  .button_with-icon {
    padding-left: 30px;
  }

  .hero-section__button {
    padding: 17px 30px;
  }

  .process-section__table th,
  .process-section__table td {
    padding: 10px 8px;
    font-size: 12px;
    line-height: 18px;
  }

  .when-section__item {
    gap: 10px;
  }

  .when-section__item-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}
