/* Hero */
.hero-section {
  padding-bottom: 170px;
}

.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-bottom: 170px;
}

.what-section__header {
  margin-bottom: 32px;
  line-height: 64px;
  font-weight: 600;
  color: var(--color-tertiary-light);
}

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

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

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

/* Agent types (cards) */
.turnkey-section {
  padding-bottom: 60px;
  background-color: var(--color-secondary-light);
}

.turnkey-section__header {
  margin-bottom: 16px;
  line-height: 48px;
  font-weight: 600;
}

.turnkey-section__subtitle {
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.turnkey-section__col {
  padding-top: 0;
}

.turnkey-section__agents {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.turnkey-section__agent {
  flex: 1;
  padding: 32px;
  background-color: var(--color-tertiary-light);
  border: 1px solid var(--color-secondary);
  border-radius: 24px;
}

.turnkey-section__agent-title {
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

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

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

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

.turnkey-section__text--emphasis {
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Process table */
.process-section {
  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);
}

/* Further — your choice */
.further-section {
  padding-bottom: 170px;
}

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

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

.further-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;
}

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

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

/* Contrast sections (shared) */
.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-bottom: 200px;
}

.when-section__header {
  margin-bottom: 56px;
  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-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

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

/* Why now */
.why-now-section__header {
  margin-bottom: 56px;
  color: var(--color-tertiary-light);
  font-weight: 600;
}

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

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

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

.why-now-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;
}

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

.why-now-section__emphasis {
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--color-tertiary-light);
  line-height: 28px;
}

/* CTA */
.cta-section {
  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) {
  .what-section__header {
    font-weight: 600;
    line-height: 56px;
  }

  .turnkey-section__agents {
    gap: 24px;
  }

  .further-section__cards {
    gap: 24px;
  }
}

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

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

  .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;
    padding-bottom: 80px;
  }

  /* What we do */
  .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;
  }

  /* Agent types — карточки */
  .turnkey-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .turnkey-section__agents {
    flex-direction: column;
    gap: 12px;
  }

  .turnkey-section__agent {
    padding: 20px;
    border-radius: 16px;
  }

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

  .turnkey-section__agent-text {
    font-size: 15px;
    line-height: 24px;
  }

  /* Free pilot */
  .turnkey-section--pilot {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Process table */
  .process-section {
    padding-top: 40px;
    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;
  }

  /* Why now — галочки */
  .why-now-section__item {
    align-items: flex-start;
    gap: 12px;
  }

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

  .why-now-section__header {
    margin-bottom: 32px;
  }

  .why-now-section__emphasis {
    font-size: 16px;
    line-height: 24px;
  }

  /* Criteria — галочки */
  .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;
  }

  /* 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__column {
    width: 100%;
  }

  .hero-section__header {
    margin-bottom: 16px;
    max-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;
  }
}
