body {
  font-weight: 400;
  font-size: 18px;
  background-color: #f4ece1;
}

.none {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  display: block;
  margin-left: -10000px;
  background: transparent;
  font-size: 0;
}

.container {
  max-width: 1740px;
  padding-left: 30px;
  padding-right: 30px;
  margin-left: auto;
  margin-right: auto;
}

@media (width <= 1739px) {
  .container {
    width: 100%;
  }
}

@media (width <= 991px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Hero section */

.hero-section {
  position: relative;
  min-height: 835px;
  padding-top: 189px;
  padding-bottom: 283px;
}

.hero-content {
  margin: auto;
  text-align: center;
  max-width: 1135px;
}

.hero-heading {
  color: #fff;
  font-size: 82px;
  line-height: 90px;
  letter-spacing: 0.05em;
}

.hero-text {
  margin-top: 31px;
  color: #f4e3ce;
  font-size: 35px;
  line-height: 40px;
}

.main-bg-wrapper {
  position: relative;
}

.main-bg-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hero-main-bg.jpg") center/cover no-repeat;
  background-color: #a58763;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 991px) {
  .hero-section {
    min-height: 200px;
    padding-top: 0;
    padding-bottom: 80px;
  }

  .hero-heading {
    font-size: 28px;
    line-height: 40px;
    letter-spacing: 0.05em;
  }

  .hero-text {
    font-size: 20px;
    line-height: 30px;
  }
}

/* showing section */
.showing {
  padding-top: 79px;
  padding-bottom: 141px;
  background-color: #2d2d2d;
}

.showing-header .btn {
  margin-top: 44px;
  padding-left: 59px;
  padding-right: 55px;
  transition: color 0.2s ease;
  color: #fff;
}

.showing-header {
  margin-bottom: 186px;
  display: flex;
}

.showing-header-title {
  font-size: 60px;
  color: #d8caaf;
  line-height: 65px;
  letter-spacing: 0.05em;
  max-width: 613px;
  margin-right: 97px;
}

.showing-header-text {
  font-size: 18px;
  color: #f4ece1;
  line-height: 24px;
  max-width: 410px;
  padding-top: 17px;
  margin-right: 159px;
}

.showing-content {
  display: flex;
  flex-direction: column;
  padding-left: 140px;
}

.showing-content-cards {
  margin-bottom: 55px;
  display: flex;
}

.showing-content-cards:last-child {
  margin-bottom: 0;
}

.example {
  width: 320px;
  margin-right: 246px;
}

.example:last-child {
  margin-right: 0;
}

.showing-content-header {
  display: flex;
  display: inline-flex;
  margin-bottom: 42px;
  color: #a68763;
  align-items: flex-end;
}

.number {
  line-height: 1;
  font-size: 82px;
}

.unit {
  font-size: 30px;
  letter-spacing: 0.05em;
}

.plus {
  position: absolute;
  font-size: 32px;
}

.showing-content-text {
  color: #f4ece1;
  font-size: 18px;
}

@media (max-width: 1739px) {
  .showing-content {
    padding-left: 0;
  }

  .showing-header-title {
    margin-right: auto;
  }

  .showing-header-text {
    margin-right: auto;
  }

  .example {
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .showing-header {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    margin-bottom: 40px;
  }

  .showing-header-title,
  .showing-header-text {
    margin-right: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  .showing-header .btn {
    text-align: center;
    width: auto;
    margin: 0 auto;

  }

  .showing-content {
    padding-left: 0;
  }

  .example {
    width: 100%;
    margin-right: 0;
    margin-top: 30px;
  }

  .showing-content-cards {
    flex-direction: column;
    text-align: center;
    margin-bottom: 0;
  }
}


/* services section */
.services-section {
  display: flex;
  padding-top: 155px;
  padding-bottom: 139px;
  width: 100%;
  align-items: start;
  gap: 30px;
  letter-spacing: 0.8px;
  font: 700 16px/3 Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

@media (max-width: 1739px) {
  .services-section {
    padding-top: 100px;
  }
}

@media (max-width: 991px) {
  .services-section {
    max-width: 100%;
    margin-top: 40px;
    flex-direction: column;
    gap: 20px;
    padding-top: 0;
  }
}

.services-header {
  display: flex;
}

.services-title {
  color: #2d2d2d;
  font-size: 60px;
  line-height: 55px;
  letter-spacing: 0.05em;
  margin-right: 67px;
}

@media (max-width: 1739px) {
  .services-header {
    flex-direction: column;
  }

  .services-title {
    margin-bottom: 20px;
  }

  .services-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .services-header {
    flex-direction: column;
  }

  .services-title {
    text-align: center;
    font-size: 40px;
    flex-grow: 0;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.services-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 991px) {
  .services-tabs {
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    gap: 15px;
  }
}

.service-tab {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  outline: none;
  padding: 15px 26px;
}

.service-tab:focus {
  outline: 2px solid #a58765;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .service-tab {
    padding: 0 20px;
    width: 300px;
    height: 39px;
  }
}

.service-tab-text {
  z-index: 10;
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .service-tab-text {
    white-space: normal;
  }
}

.service-tab-text-long {
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .service-tab-text-long {
    white-space: normal;
  }
}

.services-content {
  margin-top: 105px;
  width: 100%;
  max-width: 1635px;
}

@media (max-width: 991px) {
  .services-content {
    max-width: 100%;
    margin-top: 40px;
  }
}

.service-content-item {
  display: none;
  width: 100%;
}

.service-content-layout {
  gap: 149px;
  display: flex;
}

@media (max-width: 991px) {
  .service-content-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }
}

.service-image-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 56%;
  margin-left: 0;
}

@media (max-width: 991px) {
  .service-image-column {
    width: 100%;
  }
}

.service-image {
  aspect-ratio: 1.38;
  object-fit: contain;
  object-position: center;
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
}

@media (max-width: 991px) {
  .service-image {
    max-width: 100%;
    margin-top: 40px;
  }
}

.service-text-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 44%;
}

@media (max-width: 991px) {
  .service-text-column {
    width: 100%;
  }
}

.service-text-content {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  align-items: start;
  font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
  color: #2d2d2d;
  font-weight: 600;
}

@media (max-width: 991px) {
  .service-text-content {
    max-width: 100%;
    margin-top: 40px;
  }
}

.service-content-title {
  font-size: 40px;
  line-height: 50px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .service-content-title {
    max-width: 100%;
    font-size: 30px;
  }
}

.service-content-description {
  list-style: disc;
  padding-left: 24px; /* Общий отступ списка слева */
  margin-top: 70px;
  font-size: 24px;
}

@media (max-width: 991px) {
  .service-content-description {
    max-width: 100%;
    margin-top: 40px;
  }
}


.service-text-content .btn {
  margin: 87px 0 0 16px;
  transition: color 0.2s ease;
  color: #fff;
}

@media (max-width: 991px) {
  .service-details-button {
    white-space: initial;
    margin: 40px 0 0 10px;
    padding: 0 20px;
  }
}

.service-content-item.active {
  display: block;
}

/* target section */

.target-audience-section {
  background-color: #2d2d2d;
  align-self: stretch;
  padding-top: 93px;
  padding-bottom: 131px;
  width: 100%;
  color: #f4ece1;
}

@media (max-width: 991px) {
  .target-audience-section {
    max-width: 100%;
    margin-top: 40px;
    padding: 0 20px 100px;
  }
}

.target-audience-container {
  display: flex;
  margin-bottom: -26px;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 991px) {
  .target-audience-container {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

.target-audience-title {
  letter-spacing: 3px;
  text-transform: uppercase;
  align-self: start;
  font: 600 60px/65px Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

@media (max-width: 991px) {
  .target-audience-title {
    max-width: 100%;
    font-size: 40px;
    line-height: 48px;
  }
}

.target-audience-grid {
  margin-top: 87px;
}

.target-audience-grid:not(:first-of-type) {
  margin-top: 0;
}

@media (max-width: 991px) {
  .target-audience-grid {
    max-width: 100%;
    margin-top: 40px;
  }
}

/* Grid для равного распределения */
.target-audience-row {
  display: grid;
  grid-auto-rows: 1fr; /* Одинаковая высота рядов */
  justify-content: center;
}

/* Для широких экранов: 3 колонки (2 ряда по 3) */
@media (min-width: 1200px) {
  .target-audience-row {
    grid-template-columns: repeat(3, auto); /* Поровну: ~560px каждая */
    grid-template-rows: repeat(2, auto); /* Два равных ряда */
    gap: 0; /* Без пробелов для растяжки на 1680px */
  }
}

/* Для средних экранов: 2 колонки (3 ряда по 2) */
@media (min-width: 992px) and (max-width: 1199px) {
  .target-audience-row {
    grid-template-columns: repeat(2, auto); /* Поровну: до 560px каждая */
    grid-template-rows: repeat(3, auto); /* Три равных ряда */
  }
}

/* Для мобильных: 1 колонка (6 рядов по 1) */
@media (max-width: 991px) {
  .target-audience-row {
    grid-template-columns: auto;
    grid-template-rows: repeat(6, auto); /* Шесть равных рядов */
    align-items: stretch;
  }
}

/* Стили карточек */
.target-audience-card {
  background-color: #313131;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
  max-width: 560px;
  width: 100%;
  height: 100%; /* Растяжка на всю высоту ячейки */
  min-height: 317px;
  padding: 14px 40px;
  border: 1px solid #444;
  box-sizing: border-box;
}

/* Адаптивные корректировки */
@media (max-width: 1679px) {
  .target-audience-card {
    padding: 14px 20px;
  }
}

@media (max-width: 991px) {
  .target-audience-card {
    padding: 14px 20px;
    max-width: 100%;
  }
}

.target-audience-number {
  font-size: 90px;
  font-weight: 600;
  letter-spacing: -1.8px;
  align-self: start;
}

@media (max-width: 991px) {
  .target-audience-number {
    font-size: 40px;
  }
}

.target-audience-description {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin-top: 43px;
}

@media (max-width: 991px) {
  .target-audience-description {
    max-width: 100%;
    margin-top: 40px;
  }
}

.target-audience-description-alt {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin-top: 107px;
}

@media (max-width: 991px) {
  .target-audience-description-alt {
    max-width: 100%;
    margin-top: 40px;
  }
}

.target-audience-description-special {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin-top: 22px;
  margin-left: 9px;
}

.target-audience-description-margin {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin-top: 43px;
  margin-left: 5px;
}

.target-audience-description-offset {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin: 43px 0 0 14px;
}

.target-audience-description-final {
  font-size: 26px;
  font-weight: 500;
  line-height: 26px;
  margin: 45px 0 0 10px;
}

@media (max-width: 991px) {
  .target-audience-card p {
    font-size: 23px;
  }
}

/* ai-product-section */
.ai-product-section {
  padding-top: 82px;
  padding-bottom: 81.29px;
}

.ai-product-section .container{
  position: relative;
  min-height: 400px;
  z-index: 0;              /* точно ниже хэдера */
}

/* Фон — через псевдоэлемент, чтобы не перехватывал клики и не лез вверх */
.ai-product-section .container::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/ai_bg-main.png") center/cover no-repeat;
  z-index:-1;
  pointer-events:none;
}



.ai-product-content {
  padding: 97px 114px 92.71px;
}

.ai-product-label {
  color: #a58763;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 24px;
}

.ai-product-title {
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 60px;
  line-height: 60px;
  margin-bottom: 39px;
}

.ai-product-bottom {
  display: flex;
}

.ai-product-bottom .btn {
  text-transform: uppercase;
  padding-left: 31px;
  padding-right: 31px;
  letter-spacing: 0.05em;
  margin-top: 15px;
}

.ai-product-description {
  color: #fff;
  font-size: 22px;
  line-height: 29px;
  margin-right: 204px;
}

/* Медиа-запрос для планшетов (меньше 992px) */
@media (max-width: 991px) {
  .ai-product-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .ai-product-content {
    padding: 60px 50px 60px;
  }

  .ai-product-label {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .ai-product-title {
    font-size: 40px;
    line-height: 45px;
    margin-bottom: 30px;
  }

  .ai-product-description {
    font-size: 18px;
    line-height: 25px;
    margin-right: 100px;
  }

  .ai-product-bottom .btn {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 10px;
  }
}

/* Медиа-запрос для мобильных устройств (меньше 480px) */
@media (max-width: 600px) {
  .ai-product-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .ai-product-content {
    padding: 40px 20px;
  }

  .ai-product-label {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .ai-product-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .ai-product-bottom {
    display: block; /* Меняем flex на block, чтобы элементы шли друг под другом */
  }

  .ai-product-description {
    font-size: 16px;
    line-height: 22px;
    margin-right: 0;
    margin-bottom: 20px; /* Добавляем отступ снизу для разделения */
  }

  .ai-product-bottom .btn {
    width: 100%; /* Кнопка на всю ширину для удобства тапа */
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
}

/* case section */
.case-main-header {
  text-align: center;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: 0.05em;
  color: #a58763;
  margin-bottom: 155px;
}

.cases-section {
  padding-bottom: 108px;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.case-header .btn {
  text-transform: uppercase;
  padding-left: 46px;
  padding-right: 46px;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.cases-title {
  color: #2c2c2c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 60px;
  line-height: 55px;
}

.cases-content {
  padding-top: 66px;
  display: flex;
  gap: 36px;
}

.case-card {
  display: flex;
  flex-direction: column;
  width: 530px;
  min-height: 320px;
}

.case-card-tag {
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  align-self: flex-start;
  height: 25px;
  line-height: 25px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #a58765;
  margin-bottom: 19px;
}

.case-card-data {
  font-size: 14px;
  color: #b7ad9d;
  line-height: 20px;
  margin-bottom: 11px;
}

.case-card-title {
  font-size: 30px;
  line-height: 34px;
  color: #000;
}

.case-card-price {
  font-size: 20px;
  color: #a58763;
  margin-top: auto;
}

@media (max-width: 991px) {
  .case-main-header {
    font-size: 40px;
    letter-spacing: 0.05em;
    color: #a58763;
    margin-bottom: 30px;
  }


  .cases-content {
    flex-direction: column;
  }

  .case-card {
    width: 100%;
    min-height: unset;
  }

  .case-card-title {
    font-size: 20px;
  }

  .case-card-price {
    font-size: 15px;
  }

}

@media (max-width: 480px) {
    .cases-title{
    font-size: 30px;
  }

  .cases-section .btn {
    height: 45px;
    line-height: 45px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 18px;
  }
}


