/* =======================
   RESET
======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================
   CONTAINER
======================= */

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================
   BUTTONS
======================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #2f6bff;
    color: #fff;
}

.btn-primary:hover {
    background: #1f54e5;
}

.btn-outline {
    border: 1px solid #2f6bff;
    color: #2f6bff;
    background: transparent;
}

.btn-outline:hover {
    background: #2f6bff;
    color: #fff;
}

/* =======================
   TYPOGRAPHY
======================= */

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    color: #2f6bff;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =======================
   HERO
======================= */

.hero {
    padding: 80px 0;
    background: #f6f8fc;
}

.hero__subtitle {
    color: #2f6bff;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.hero__title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__text {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
}

/* =======================
   RESET
======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================
   CONTAINER
======================= */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================
   BUTTONS
======================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: pointer;
}

a.btn.btn-primary {
    /*width: 458px;*/
    height: 55px;
    background-color: #116af8;
    font-size: 14px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
    text-align: center;
    border-radius: 0;
}



.btn-outline {
    border: 1px solid #2f6bff;
    color: #2f6bff;
    background: transparent;
}

.btn-outline:hover {
    background: #2f6bff;
    color: #fff;
}

.advantages .section-title {
    font-size: 40px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 600;
    font-family: "Montserrat";
    text-align: center;
}

/* =======================
   TYPOGRAPHY
======================= */

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    color: #2f6bff;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =======================
   HERO
======================= */

.hero {
    padding: 80px 0;
    background: #f6f8fc;
    background: url(/wp-content/themes/codiq/assets/images/home_banner.png);
    height: 35vw;
    display: flex;
    align-items: center;
    background-position: center;
}
.advantages .container p {
    font-size: 24px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #dce3eb;
    font-weight: 400;
    font-family: "Montserrat";
    text-align: center;
    margin-top: 30px;
}
section.advantages {
    padding: 80px 0;
    background: url(/wp-content/themes/codiq/assets/images/section2_background.png);
    background-position: top center;
}
.hero__subtitle {
    margin-bottom: 10px;
    display: inline-block;
    font-size: 26px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
}

.hero__title {
    margin-bottom: 20px;
    font-size: 42px;
    line-height: 65px;
    color: #ffffff;
    font-weight: bold;
    font-family: "Montserrat";
    text-transform: uppercase;
}
.hero__title span {
    font-size: 54px;
}
.hero__text {
    margin-bottom: 30px;
    font-size: 18px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
    margin-top: 40px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
}

/* =======================
   CASE
======================= */
.advantages__grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.round-adv {
    width: 271px;
    height: 272px;
    border-radius: 136px;
    background-image: linear-gradient(40deg, #131313 0%, #212121 100%);
    border: 27px solid #052699;
    position: relative;
    display: flex;
    justify-content: center;
}
span.adv-number {
    font-size: 48px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
    text-align: center;
    position: absolute;
    transform: translate(-50%, 10px);
    left: 50%;
    width: max-content;
    margin-top: 40px;
}
span.adv-text
 {
    font-size: 23px;
    letter-spacing: 0px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
    text-align: center;
    position: absolute;
    bottom: 0;
    height: 150px;
    display: flex;
    align-items: center;
}

section.for-business {
    background: #1D1D1D;
    padding: 80px 0;
}

.for-business .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.for-wrapper:first-child {
    font-size: 40px;
    letter-spacing: 0px;
    color: #116af8;
    font-weight: 500;
    font-family: "Montserrat";
    height: 224px;
    background: transparent;
    align-items: center;
    display: flex;
}
.for-wrapper {
    font-size: 24px;
    letter-spacing: 0px;
    color: #fff;
    font-weight: 400;
    font-family: "Montserrat";
    height: 224px;
    background-color: #052699;
    padding: 30px 35px;
    background-image: url(/wp-content/themes/codiq/assets/images/V.svg);
    background-repeat: no-repeat;
}




/* Общие стили для секции с градиентом */
.cases-section {
  background: linear-gradient(135deg, #cce0ff 0%, #a3bfff 100%);
  padding: 60px 20px;
  font-family: sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('/wp-content/themes/codiq/assets/images/map back.png');
}

/* Заголовок секции по центру */
.section-title {
    margin-bottom: 40px;
    font-size: 38px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #191919;
    font-weight: 700;
    font-family: "Montserrat";
    text-align: center;
}

/* Двухколоночный контейнер с навигацией */
.case-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
}

/* Левая текстовая колонка */
.case-content {
  flex: 1;
  max-width: 50%;
    padding-right: 0;
}

.case-company {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 30px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #191919;
    font-family: "Montserrat";
}

.case-subtitle {
    font-size: 24px;
    margin-bottom: 25px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #191919;
    font-weight: 500;
    font-family: "Montserrat";
}

.case-heading {
    margin-bottom: 20px;
    font-size: 30px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #052699;
    font-weight: 700;
    font-family: "Montserrat";
}

.case-description {
    margin-bottom: 35px;
    font-size: 18px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #191919;
    font-weight: 400;
    font-family: "Montserrat";
    margin-top: 50px;
}

/* Кнопки */
.case-actions {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0066ff;
  color: #fff;
}

.btn-secondary {
    background-color: #fff;
    font-size: 14px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #191919;
    font-weight: 500;
    font-family: "Montserrat";
    text-align: center;
    border-radius: 0;
    gap: 10px;
}

/* Иконка Play внутри кнопки видео-отзыва */
.play-icon {
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  border-radius: 50%;
  margin-left: 8px;
  position: relative;
}
.play-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  border-left: 5px solid #000;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

/* Правая колонка с кругом */
.case-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

/* Внешнее полупрозрачное кольцо */
.circle-wrapper {
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    aspect-ratio: 1 / 1;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Внутренний белый круг с логотипом */
.logo-circle {
  width: 200px;
  height: 200px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.case-logo {
  max-width: 70%;
  height: auto;
}

/* Стрелки навигации (слайдер) */
.nav-arrow {
  background: none!important;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.prev-arrow { left: -50px; }
.next-arrow { right: -50px; }

/* Кастомные стрелки через CSS-бордюры */
.prev-arrow::after, .next-arrow::after {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-top: 2px solid #666;
  border-left: 2px solid #666;
}
.prev-arrow::after { transform: rotate(-45deg); }
.next-arrow::after { transform: rotate(135deg); }

/* Нижняя кнопка */
.section-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
}

/* Окно, где лежат слайды друг под другом */
.slider-viewport {
  position: relative;
  flex: 1;
  min-height: 450px; /* Высота подстраивается под самый высокий слайд */
}

/* Базовое состояние слайда — скрыт */
.case-slide {
  display: flex;
  width: 100%;
  /*align-items: center;*/
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

/* Активное состояние слайда — виден */
.case-slide.active {
  position: relative; /* Чтобы viewport растягивался по высоте активного слайда */
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Стили для стрелок теперь привязаны к slider-wrapper */
.nav-arrow {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}
/* Позиционирование стрелок по бокам */
.prev-arrow { margin-right: 20px; }
.next-arrow { margin-left: 20px; }

/* Оставляем адаптивность для мобильных */
@media (max-width: 992px) {
  .case-slide {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .slider-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .nav-arrow {
    margin: 0;
  }
  /* На мобильных стрелки можно выстроить в ряд под контентом, если захотите */
}


a.btn.btn-outline {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #010101;
    font-weight: 600;
    font-family: "Montserrat";
    text-align: center;
    background-color: #dce3eb;
    border-radius: 0;
    border: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
  .case-container {
    flex-direction: column-reverse;
    gap: 40px;
  }
  .case-content {
    padding-right: 0;
    text-align: center;
  }
  .case-actions {
    justify-content: center;
  }
  .nav-arrow {
    position: static;
    transform: none;
  }
}

/* Общий контейнер секции с фоновым градиентом */
.target-section {
  background: linear-gradient(to right, #8b939e, #b3bac5); /* Серый градиент как на фото */
  padding: 80px 20px;
  font-family: sans-serif;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
}

/* Ограничивающий контейнер по сетке сайта */
.target-section .container {
  display: flex;
  align-items: center;
  gap: 40px; /* Отступ между заголовком и линией */
}

/* Левая часть с заголовком */
.target-title-box {
  flex: 0 0 30%; /* Занимает фиксированные 35% ширины */
  display: flex;
  justify-content: flex-end; /* Сдвигает текст вправо, ближе к линии */
  padding-right: 20px;
}

.target-title {
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    text-align: left;
    font-size: 40px;
    letter-spacing: 0px;
    color: #191919;
    font-family: "Montserrat";
}

/* Правая часть со списком и вертикальной линией */
.target-list {
    flex: 0 0 65%;
    list-style: none;
    padding: 0 0 0 40px;
    margin: 0;
    border-left: 7px solid #878ea0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Элемент списка с кастомным крестиком */
.target-item {
    line-height: 1.4;
    position: relative;
    padding-left: 30px;
    font-size: 24px;
    letter-spacing: 0px;
    color: #242424;
    font-weight: 600;
    font-family: "Montserrat";
    display: flex;
    gap: 15px;
}
.target-item svg {
    flex-shrink: 0;
    margin-top: 10px;
}



/* Основной контейнер секции */
.services-section {
  background-color: #eef2f5; /* Светлый фон как на макете */
  padding: 100px 20px;
  font-family: sans-serif;
}

/* Главный заголовок ПОСЛУГИ */
.services-main-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* Сетка для карточек (3 колонки по умолчанию) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Отступы между карточками */
  margin: 0 auto;
}

/* Стили самой карточки */
.service-card {
  display: flex;
  flex-direction: column;
  background-color: #1a1e24; /* Темно-серый/черный низ карточки */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Контейнер для картинки */
.service-image {
  width: 100%;
  height: 220px; /* Фиксированная высота для выравнивания */
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Картинка заполняет область без искажений */
  display: block;
}

/* Контейнер с текстом */
.service-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #232323;
    background-image: url(/wp-content/themes/codiq/assets/images/services-back.png);
        background-repeat: no-repeat;
}

/* Синий плашечный заголовок внутри карточки */
.service-title {
    font-size: 26px;
    letter-spacing: 0px;
    line-height: 36px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
}
a.service-link {
    font-size: 11px;
    letter-spacing: 0px;
    text-decoration: underline;
    text-transform: uppercase;
    color: #116bf8;
    font-weight: 600;
    font-family: "Montserrat";
}
/* Описание услуги */
.service-text {
    margin: 30px 0 30px 0;
    flex-grow: 1;
    font-size: 13px;
    letter-spacing: 0px;
    line-height: 20px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Montserrat";
}

/* Ссылка «ДЕТАЛЬНІШЕ» */
.service-link {
  color: #0055ff; /* Голубой цвет ссылки */
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  align-self: flex-start; /* Чтобы ссылка не растягивалась на всю ширину */
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #ffffff; /* Эффект при наведении */
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 20px;
  }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 колонка */
  }
  
  .service-image {
    height: 200px;
  }
}












/* Адаптивность под мобильные устройства */
@media (max-width: 768px) {
  .target-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .target-title-box {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding-right: 0;
  }

  .target-list {
    flex: none;
    width: 100%;
    padding-left: 20px;
    /* На мобильных линию можно оставить слева, либо скрыть, убрав border-left */
  }
}


/* Основной контейнер секции с темно-синим фоном */
.consult-section {
    padding: 80px 20px;
    font-family: sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    background-color: #0e2061;
    background-image: url(/wp-content/themes/codiq/assets/images/tmu_footer.png);
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: 80%;
}

/* Ограничитель ширины контента */
.consult-container {
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
  gap: 50px;
}

/* Левая колонка */
.consult-info {
    flex: 1;
    width: 50%;
}

.consult-title {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    font-size: 40px;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: "Montserrat";
}

.consult-subtitle {
    color: #116af8;
    margin: 0;
    font-size: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    font-family: "Montserrat";
}

/* Правая колонка: Рамка вокруг формы */
.consult-form-box {
    flex: 1;
    width: 50%;
    padding: 40px;
    box-sizing: border-box;
    flex-grow: 1;
    flex-shrink: 0;
    border: 2px solid #dce3eb;
}

.form-title {
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 39px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 200;
    font-family: "Montserrat";
    text-align: center;
}

/* Сетка инпутов */
.consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
}

.consult-form input[type="text"], .consult-form input[type="tel"], .consult-form textarea {
    width: 100%;
    border: none;
    padding: 12px 15px;
    box-sizing: border-box;
    outline: none;
    border-radius: 7px;
    background-color: #c2cde6;
    font-size: 14px;
    letter-spacing: 0px;
    color: #4b4b4b;
    font-weight: 400;
    font-family: "Montserrat";
}
.consult-form textarea {
  resize: none; /* Запрет изменения размера текстового поля */
}

/* Стили плейсхолдеров (текста подсказок) */
.consult-form ::placeholder {
  color: #64748b;
  font-size: 12px;
}

/* Нижняя часть формы */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.policy-text {
    margin: 0;
    flex: 1;
    font-size: 14px;
    letter-spacing: 0px;
    line-height: 24px;
    color: #ffffff;
    font-weight: 100;
    font-family: "Montserrat";
}

/* Кнопка отправки */
button.btn-submit {
    height: 55px;
    background-color: #116af8;
    width: 295px;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 600;
    font-family: "Montserrat";
    text-align: center;
}

.btn-submit:hover {
  background-color: #0052cc;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 992px) {
  .consult-container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  
  .consult-info {
    max-width: 100%;
    text-align: center;
  }

  .consult-form-box {
    max-width: 100%;
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }

  .btn-submit {
    width: 100%;
  }
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 1024px) {

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .not-for__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__wrapper,
    .for-business__wrapper,
    .case__wrapper,
    .contact__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .advantages__grid,
    .services__grid,
    .not-for__grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__buttons {
        flex-direction: column;
    }
}