/* style.css - Стили для сайта LiveCUT (v2 - Улучшенный) */

/* Сброс и базовые настройки */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Используем новый шрифт для основного текста */
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #495057; /* Слегка смягчим основной цвет текста */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px; /* Немного увеличим максимальную ширину */
    margin: 30px auto; /* Увеличим верхний/нижний отступ контейнера */
    flex-grow: 1;
}

/* Общие стили ссылок */
a {
    color: #0069d9; /* Основной синий для ссылок */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    color: #004085; /* Более темный синий при наведении */
    text-decoration: underline;
}

/* Шапка сайта */
header {
    background: linear-gradient(to bottom, #454c54, #343a40); /* Слегка изменен градиент */
    color: #fff;
    padding: 45px 30px; /* Еще немного увеличим отступы */
    margin-bottom: 40px; /* Увеличим отступ снизу */
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Усилим тень */
    /* Шапку делаем на всю ширину, убираем из .container */
    border-radius: 0; /* Убираем скругление, если она на всю ширину */
}

/* Стили для логотипа в шапке */
.logo-link {
    margin-bottom: 15px;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    color: #00aeff;
    font-size: 2em; /* Корректируем размер иконки */
    margin-right: 8px;
    vertical-align: middle;
}

.logo-text {
    /* Используем новый шрифт для логотипа */
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Делаем жирнее */
    font-size: 3em; /* Корректируем размер */
    vertical-align: middle;
}

/* Переопределение стилей для ссылки-логотипа при наведении */
.logo-link:hover {
    color: #ffffff; /* Оставляем цвет текста логотипа белым */
    text-decoration: none; /* Убираем подчеркивание */
    opacity: 0.9; /* Добавим легкую прозрачность для обратной связи */
}

header p {
    color: #f8f9fa;
    font-size: 1.1rem;
    max-width: 600px;
    text-align: center;
}

/* Секции контента */
section {
    background-color: #ffffff;
    padding: 35px 40px; /* Увеличим внутренние отступы */
    margin-bottom: 35px;
    border: 1px solid #e9ecef; /* Еще светлее граница */
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07); /* Улучшенная тень */
}

/* Заголовки секций */
h2 {
    /* Используем новый шрифт */
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Полужирный */
    font-size: 1.8em; /* Увеличим размер */
    color: #343a40; /* Темный цвет заголовков */
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6; /* Тоньше линия */
}

h3 {
    /* Используем новый шрифт */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3em;
    color: #495057;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Списки */
section ul {
    list-style: none; /* Убираем стандартные маркеры */
    padding-left: 0;
}

section ul li {
    position: relative;
    padding-left: 30px; /* Отступ для кастомного маркера */
    margin-bottom: 12px; /* Увеличим отступ между пунктами */
    color: #5a6268; /* Слегка приглушим текст списка */
}

section ul li::before {
    content: '✓'; /* Используем галочку */
    position: absolute;
    left: 0;
    top: 1px; /* Точнее выровнять по вертикали */
    color: #28a745; /* Зеленый цвет маркера */
    font-weight: bold;
    font-size: 1.1em; /* Чуть крупнее маркер */
}

/* Кнопки */
.button, form button {
    display: inline-block;
    padding: 14px 28px; /* Увеличим паддинги */
    border: none;
    border-radius: 6px; /* Чуть больше скругление */
    text-decoration: none;
    font-weight: 600; /* Используем полужирный шрифт */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-align: center;
    font-size: 1.05em; /* Чуть крупнее шрифт */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Легкая тень */
}

.button:hover, form button:hover {
    opacity: 1; /* Убираем прозрачность при наведении, используем другие эффекты */
    transform: translateY(-2px); /* Увеличим подъем */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Усилим тень при наведении */
    text-decoration: none; /* Убираем подчеркивание у кнопок */
}

.button:active, form button:active {
    transform: translateY(0px); /* Возвращаем на место при клике */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Возвращаем тень при клике */
}

.download-button {
    background-color: #007bff;
    color: white;
    font-size: 1.1em; /* Еще чуть крупнее для акцента */
    padding: 15px 35px; /* Еще больше */
    margin-top: 25px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.download-button:hover {
    background-color: #0069d9;
}

form button {
    background-color: #28a745;
    color: white;
     font-size: 1.1em; /* Кнопку формы тоже крупнее */
     padding: 15px 35px;
}
form button:hover {
    background-color: #218838;
}

/* Секция скачивания */
/* #download inherits general section styles, no additional styling needed */

#download p small {
    color: #6c757d;
    display: block;
    margin-top: 15px; /* Увеличим отступ для версии */
}

/* Центрируем параграф с информацией о версии */
#download p:last-of-type {
    text-align: center;
}

/* Секция лицензии и форма */
#license p {
    margin-bottom: 20px;
    color: #5a6268;
}

form label {
    display: block;
    margin-top: 20px; /* Увеличим отступ сверху */
    margin-bottom: 8px;
    font-weight: 600; /* Полужирный */
    color: #495057;
    font-size: 0.95em;
}

form input[type="text"],
form input[type="email"] {
    width: 100%;
    padding: 14px 18px; /* Увеличим паддинги */
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Плавные переходы для полей */
}

form input[type="text"]:focus,
form input[type="email"]:focus {
    border-color: #86b7fe; /* Цвет рамки при фокусе (Bootstrap-like) */
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25); /* Тень при фокусе */
}

form small {
    display: block;
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9em;
}

form p strong {
    color: #dc3545;
}

form button { /* Кнопка отправки формы */
    margin-top: 25px; /* Больше отступ сверху */
}


/* Подвал сайта */
footer {
    text-align: center;
    padding: 25px; /* Увеличим отступ */
    margin-top: 40px;
    font-size: 0.95em; /* Чуть крупнее */
    color: #6c757d;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    /* Подвал теперь внутри .container, поэтому стили ширины не нужны */
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }

    header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .logo-icon {
        font-size: 1.8em;
    }

    .logo-text {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    section {
        padding: 25px 20px; /* Меньше отступы на мобильных */
        margin-bottom: 25px;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

    .button, form button {
        padding: 12px 24px; /* Чуть меньше кнопки */
        font-size: 1em;
        width: 100%; /* Кнопки формы и общие на всю ширину */
        margin-top: 15px;
    }
    .download-button {
        width: auto; /* Кнопка скачивания НЕ на всю ширину */
        display: inline-block;
        padding: 12px 24px; /* Синхронизируем размер с другими */
         font-size: 1em;
    }
     form button {
        margin-top: 20px;
    }

    form label { margin-top: 15px; }
    form input[type="text"],
    form input[type="email"] { padding: 12px 15px; }

    footer { padding: 20px; margin-top: 30px;}
}

/* Стили для секции сообщений */
#message-section {
    margin: 40px auto;
    max-width: 600px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-success-title {
    color: #28a745;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.message-error-title {
    color: #dc3545;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.message-error {
    color: #dc3545;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Стили для демонстрационного GIF */
.gif-container {
    text-align: center; /* Центрируем содержимое блока */
    margin-top: 25px;    /* Отступ сверху от текста описания */
    margin-bottom: 30px; /* Отступ снизу до заголовка "Ключевые возможности" */
}

.demo-gif {
    max-width: 100%;    /* GIF не будет вылезать за пределы контейнера */
    height: auto;       /* Сохраняем пропорции */
    border: 1px solid #dee2e6; /* Тонкая рамка, как у секций */
    border-radius: 6px;    /* Небольшое скругление углов */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Легкая тень */
    /* display: block; */ /* Не нужно, т.к. центрируем через родителя */
    /* margin: 0 auto; */ /* Не нужно, т.к. центрируем через родителя */
}

/* Стили для FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    list-style: none;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    background-color: #f8f9fa;
    position: relative;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 0 20px 15px;
    border-top: 1px solid #dee2e6;
}

.faq-answer code {
    background-color: #f1f3f5;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Стили для FAQ аккордеона */
#faq h2 {
    margin-bottom: 25px; /* Отступ под заголовком FAQ */
}

.faq-item {
    border-bottom: 1px solid #eee; /* Разделитель между вопросами */
    margin-bottom: 15px; /* Отступ между вопросами */
    list-style: none;
}
.faq-item:last-child {
    border-bottom: none; /* Убираем разделитель у последнего элемента */
}

.faq-question { /* Стиль для самого вопроса (<summary>) */
    padding: 15px 0;
    font-size: 1.15em; /* Крупнее шрифт вопроса */
    font-weight: 600; /* Полужирный */
    color: #0056b3;   /* Синий цвет вопроса */
    cursor: pointer;    /* Указатель при наведении */
    position: relative; /* Для позиционирования псевдоэлемента "+" */
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #003f80; /* Темнее при наведении */
}

.faq-question::-webkit-details-marker { display: none; } /* Убираем маркер в Chrome/Safari */
.faq-question::marker { display: none; } /* Убираем маркер в Firefox (может не сработать везде) */

/* Добавляем "+" и "-" с помощью псевдоэлемента */
.faq-question::before {
    content: '+';
    position: absolute;
    right: 10px; /* Позиция справа */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff; /* Синий цвет плюсика */
    transition: transform 0.2s ease; /* Анимация поворота */
}

details[open] > .faq-question::before {
    content: '−'; /* Знак минуса, когда открыто */
    /* transform: translateY(-50%) rotate(45deg); /* Альтернатива: Поворот плюса в "x" */
    color: #dc3545; /* Красный цвет минуса */
}


.faq-answer { /* Стиль для ответа (содержимое <details>) */
    padding: 5px 0 20px 10px; /* Отступы для ответа */
    line-height: 1.7;
    color: #495057; /* Цвет текста ответа */
}

.faq-answer p:last-child {
     margin-bottom: 0; /* Убираем лишний отступ у последнего параграфа ответа */
}

/* Стили для секции УТП (USP) */
.usp-section {
    background-color: #ffffff; /* Белый фон, как у других секций */
    padding: 35px 40px;
    margin-bottom: 35px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.usp-section h2 {
    text-align: center; /* Центрируем основной заголовок секции */
    margin-bottom: 15px; /* Уменьшим отступ после заголовка */
     border-bottom: none; /* Убираем линию под заголовком этой секции */
     padding-bottom: 0;
}

.usp-intro {
    text-align: center;
    max-width: 700px; /* Ограничим ширину вводного текста */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px; /* Отступ перед карточками */
    font-size: 1.1em;
    color: #5a6268;
}

.usp-grid {
    display: grid; /* Используем Grid для раскладки */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Адаптивные колонки */
    gap: 30px; /* Пространство между карточками */
}

.usp-card {
    background-color: #f8f9fa; /* Слегка серый фон карточек */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-card:hover {
    transform: translateY(-5px); /* Эффект подъема при наведении */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.usp-icon {
    width: 100%; /* Размер иконок */
    height: auto;
    margin-bottom: 0;
}

.usp-title { /* Стиль заголовка внутри карточки */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25em;
    color: #343a40;
    margin-bottom: 10px;
}

.usp-text { /* Стиль текста внутри карточки */
    font-size: 0.95em;
    color: #495057;
    line-height: 1.6;
}

/* Стили для секции "Быстрый Старт" */
#quick-start {
    /* Наследует общие стили секций (фон, паддинги, тень и т.д.) */
    /* Можно добавить особый фон, если нужно выделить */
    /* background-color: #eef7ff; /* Например, очень светлый синий */
     padding-top: 40px; /* Чуть больше отступ сверху */
     padding-bottom: 40px; /* Чуть больше отступ снизу */
}

#quick-start h2 {
    text-align: center;
    margin-bottom: 20px;
     /* Можно убрать линию под заголовком этой секции */
     border-bottom: none;
     padding-bottom: 0;
}

#quick-start p { /* Стили для вводного и заключительного параграфов */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Увеличим отступ перед и после списка */
    color: #5a6268;
    font-size: 1.1em;
    line-height: 1.7;
}

.quick-start-list {
    list-style: none; /* Убираем стандартные цифры */
    counter-reset: quick-start-counter; /* Инициализируем счетчик */
    padding-left: 0;
    max-width: 750px; /* Чуть шире */
    margin: 0 auto 30px auto; /* Центрируем список */
}

.quick-start-list li {
    counter-increment: quick-start-counter; /* Увеличиваем счетчик */
    margin-bottom: 25px; /* Отступ между шагами */
    padding-left: 60px; /* Отступ слева для номера */
    position: relative;
    font-size: 1.1em; /* Крупнее текст шагов */
    line-height: 1.8;
    color: #343a40; /* Темнее текст шагов */
}

 .quick-start-list li:last-child {
     margin-bottom: 0; /* Убираем лишний отступ у последнего шага */
 }

.quick-start-list li::before {
    content: counter(quick-start-counter); /* Отображаем номер */
    position: absolute;
    left: 0;
    top: 0;
    width: 40px; /* Крупнее кружок */
    height: 40px;
    background-color: #007bff; /* Синий фон */
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1em; /* Крупнее номер */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень у кружка */
}

#quick-start p:last-child { /* Убираем лишний отступ у последнего параграфа */
     margin-bottom: 0;
}

#pricing {
  background-color: #ffffff;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

#pricing h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #343a40;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: #f8f9fa;
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pricing-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.pricing-card .price {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px 40px;
  border: 1px solid #888;
  width: 80%;
  max-width: 550px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover, .close-button:focus {
  color: black;
  text-decoration: none;
}

#modalForm label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9em;
}

#modalForm input[type="text"], #modalForm input[type="email"], #modalForm input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1em;
}

#modalForm button {
  margin-top: 25px;
  width: 100%;
  padding: 12px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
}

#modalForm button:hover {
  background-color: #218838;
}

#modalForm p small {
  font-size: 0.85em;
  color: #6c757d;
  margin-top: 5px;
  display: block;
}

#modalPlanTitle {
  margin-bottom: 5px;
  font-size: 1.4em;
  color: #343a40;
}

#modalPlanPrice {
  margin-bottom: 20px;
  font-size: 1.2em;
  color: #007bff;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}