/* Базовые стили и переменные */

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

html {
    scroll-behavior: smooth;
}


:root {
    --primary-color: #007bff; /* Основной синий (пример) */
    --secondary-color: #34c6f4; /* Голубой для кнопок */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-dark: #212529; /* Темный фон */
    --bg-light-dark: #343a40; /* Чуть светлее темный */
    --border-color: #dee2e6;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif; /* Или другой шрифт с макета */
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--bg-dark);
}

.container {
    width: 90%;
    max-width: 1140px; /* Стандартная ширина контейнера */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none; /* Убрать подчеркивание при наведении, если не нужно */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Убирает лишние отступы под картинками */
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--secondary-color);
	margin-top: 100px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}
.btn--primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
}

.btn--secondary {
    background-color: #007BFF;
    color: var(--text-color-light);
    border-color: #007BFF;
}
.btn--secondary:hover {
    background-color: #007BFF;
    border-color: var(--primary-color);
    color: #000000;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Header */
.header {
    background-color: #0A1219; /* Или прозрачный, если фон секции hero виден */
    padding: 15px 0;
    border-bottom: 0px solid #444; /* Примерная граница */
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
}
.logo img {
    height: 80px; /* Примерная высота лого */
    margin-right: 10px;
}
.logo span {
    font-size: 0.8em;
    line-height: 1.2;
    max-width: 150px; /* Чтобы текст переносился */
    display: block; /* Для переноса строки */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-color-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
}
.main-nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {

    background: url('/wave-background3.svg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* по желанию: эффект параллакса */

	background-color: #000; /* Фоллбэк */
    background-size: cover;
    background-position: center center;
    padding: 100px 0; /* Вертикальные отступы */
    text-align: left;
    min-height: 500px; /* Примерная высота */
    display: flex;
    align-items: center; /* Центрирование контента по вертикали */
}

.hero__container {
     /* Не нужно, если выравнивание через flex в .hero */
}

.hero h1 {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 500;
    color: var(--text-color-light);
}

/* About Us Section */
/* About Us Section */
/* About Us Section */
.about-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-us__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* всё выравнено влево */
    text-align: left;
}

.about-us__icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    align-self: center; /* иконка остаётся по центру */
}

.about-us__title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-color-light);

    /* фиксируем высоту заголовков, чтобы описания начинались строго в линию */
    min-height: 50px;       
    display: flex;
    align-items: flex-end;  /* текст прижат к низу блока */
    text-align: left;
}

.about-us__item p {
    font-size: 0.95em;
    color: #ccc;
    margin: 0;
    text-align: left;
}


/* Services Section */
.services__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding: 30px 20px;
    background-color: #2c2f36;
    border-radius: 10px;
    min-height: 200px; /* фиксируем высоту */
    transition: transform 0.3s ease;
}

.service-card i {
    font-size: 40px;
    margin-bottom: 5px;
    color: white;
}

.service-card__title {
      font-size: 1.1em;
    margin: 5px 0 10px 0; /* Сверху - ближе к иконке */
    color: var(--text-color-light);
}

.service-card__content p {
    font-size: 14px;
    color: #ccc;
}

.service-card__image {
    width: 100%;
    height: 30px; /* Фиксированная высота картинки */
    object-fit: cover; /* Масштабирование картинки */
}

.service-card__content {
    padding: 20px;
    flex-grow: 1; /* Занимает оставшееся место */
}

.service-card__title {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.service-card p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 0;
}

/* Stages Section - Timeline */
.stages__timeline {
    position: relative;
    max-width: 800px; /* Ограничить ширину для читаемости */
    margin: 0 auto;
}

.stage__item {
    display: flex;
    position: relative;
    margin-bottom: 40px; /* Отступ между этапами */
    padding-left: 80px; /* Отступ для линии и точки */
    align-items: flex-start;
}
.stage__item:last-child {
    margin-bottom: 0;
}

.stage__point {
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: 20px; /* Позиция точки */
    top: 0; /* Напротив начала текста */
    z-index: 2;
    border: 3px solid var(--bg-dark); /* Обводка в цвет фона */
}

.stage__line {
    width: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 29px; /* Центр точки (20/2 + 20 - 1) */
    top: 10px; /* Начать ниже точки */
    bottom: -40px; /* До следующего item (margin-bottom) */
    z-index: 1;
}
.stage__item:last-child .stage__line {
    display: none; /* Убрать линию у последнего элемента */
}

.stage__image-wrap {
    flex-shrink: 0;
    width: 150px; /* Ширина картинки */
    height: 100px; /* Высота картинки */
    margin-right: 30px;
    border-radius: 5px;
    overflow: hidden;
}
.stage__image-wrap img {
     width: 100%;
     height: 100%;
     object-fit: cover;
}

.stage__content {
    flex-grow: 1;
}

.stage__step {
    display: block;
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 5px;
}

.stage__title {
    font-size: 1.3em;
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.stage__content p {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 0;
}

/* CTA Consult Section */
.cta-consult {
    background-color: var(--bg-light-dark); /* Фоллбэк */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--text-color-light);
}

.cta-consult__title {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-consult p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Section */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team__member img {
    border-radius: 8px; /* Или 50% для круглых фото */
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратные фото */
    object-fit: cover;
}

/* Contact Form Section */
.contact-form-section {
     background-color: #111; /* Фоллбэк */
     background-size: cover;
     background-position: center;
}
.contact-form-section__container {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Выровнять по верху */
}

.contact-info {
    flex: 1; /* Занимает доступное пространство */
    max-width: 40%; /* Ограничить ширину */
}
.contact-info__title {
     font-size: 2em;
     color: var(--secondary-color);
	 margin-top: 100px;
     margin-bottom: 15px;
}
.contact-info h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
}
.contact-icon {
    margin-right: 10px;
    color: var(--secondary-color);
    /* Стили для иконок */
    width: 20px; /* Для выравнивания текста */
    text-align: center;
}
.contact-details a {
    color: #ccc;
}
.contact-details a:hover {
    color: var(--secondary-color);
}


.form-wrapper {
    flex: 1; /* Занимает доступное пространство */
    background-color: rgba(40, 40, 40, 0.8); /* Полупрозрачный фон формы */
	margin-top: 80px;
    padding: 30px;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #ccc;
    
    position: static;
    left: auto;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--text-color-light);
    border-radius: 4px;
    box-sizing: border-box; /* Учитывает padding и border в ширине */
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { /* Стилизуем плейсхолдеры */
    color: #888;
}

/* Плейсхолдеры вместо лейблов, если нужно */
/* Нужно добавить атрибут placeholder в HTML */
/* .contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
   padding-left: 15px;
} */
/* Добавляем плейсхолдеры в HTML: <input type="text" placeholder="Имя"> */

.contact-form .form-group--checkbox {
    display: flex;
    align-items: flex-start; /* Флажок сверху текста */
    margin-bottom: 25px;
}
.contact-form .form-group--checkbox input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0; /* Не сжимать флажок */
    margin-top: 4px; /* Выровнять с текстом */
    accent-color: var(--secondary-color); /* Цвет флажка */
}
.contact-form .form-group--checkbox label {
    font-size: 0.8em;
    color: #aaa;
    position: static; /* Возвращаем видимость label для чекбокса */
    line-height: 1.4;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.form-note {
    text-align: right;
    font-size: 0.8em;
    color: #aaa;
    margin-top: 15px;
}
.form-note a { /* Если это ссылка */
     color: #aaa;
}
.form-note a:hover {
     color: var(--secondary-color);
}


/* Footer */
.footer {
    background-color: var(--bg-light-dark);
    padding: 20px 0;
    font-size: 0.85em;
    color: #aaa;
    border-top: 1px solid #444;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Для переноса на маленьких экранах */
    gap: 10px;
}

.footer p {
    margin: 0;
}
.footer a {
     color: #ccc;
}
.footer a:hover {
     color: var(--secondary-color);
}
.footer__bitrix {
     text-align: center;
}


/* Адаптивность (базовые примеры) */
@media (max-width: 992px) {
     .header__container {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav li {
        margin: 5px 10px;
    }
     .hero h1 {
        font-size: 2.8em;
    }
     .stages__timeline {
        max-width: 100%;
    }
    .stage__item {
        padding-left: 60px; /* Уменьшить отступ */
    }
    .stage__point { left: 10px; }
    .stage__line { left: 19px; }
    .stage__image-wrap { width: 120px; height: 80px; margin-right: 20px; }

     .contact-form-section__container {
        flex-direction: column;
     }
     .contact-info { max-width: 100%; }
     .form-wrapper { width: 100%; box-sizing: border-box;} /* Чтобы padding не вылезал */
}

@media (max-width: 768px) {
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 2em; }
    .hero { padding: 60px 0; min-height: auto; }
    .hero h1 { font-size: 2.2em; }
    .hero__subtitle { font-size: 1.1em; }

    .about-us__grid { grid-template-columns: 1fr; } /* В один столбец */

    .stage__item { flex-direction: column; align-items: flex-start; }
    .stage__image-wrap { margin-right: 0; margin-bottom: 15px; width: 100%; height: auto; max-width: 250px; }
    .stage__point { top: 5px; } /* Немного ниже */

    .footer__container {
        flex-direction: column;
        text-align: center;
    }
     .footer__bitrix { order: -1; } /* Поднять блок битрикса вверх на мобилке, если нужно */
}

@media (max-width: 576px) {
     .main-nav li { margin: 3px 7px; }
     .main-nav a { font-size: 0.8em; }
     .hero h1 { font-size: 1.8em; }
     .btn { padding: 10px 20px; font-size: 0.9em; }
     .stage__item { padding-left: 40px; }
     .stage__point { left: 0px; width: 15px; height: 15px; }
     .stage__line { left: 7px; bottom: -30px; /* Учитываем margin-bottom */ }
     .form-wrapper { padding: 20px; }
}


.team__name {
    margin-top: 10px;
    font-size: 1em;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}


.section-cta--with-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center; /* можно заменить на space-between при необходимости */
  margin-top: 30px;
}

.btn--phone,
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn--phone {
  background-color: #4ba3f2;
  color: white;
}

.btn--phone:hover {
  background-color: #3b8cd0;
 color: black; /* текст становится черным */
}

.btn--whatsapp {
  background-color: #25d366;
  color: white;
}

.btn--whatsapp:hover {
  background-color: #1eb954;
 color: black; /* текст становится черным */
}