:root {
    --message-color: #CCD5AE;
    --alert-color: #D4A373;
    --secondary-color: #688349;
    --sec1: #738349;
    --sec2: #788349;
    --sec3: #838349;
    --background-color: #FAFFF4;
    --button-color: #E9EDC9;
    --button-hover-color: #FAEDCD;
    --text-color: #17150C;
    --links-color: #025767;
    --input-color: #DDD;
    --block-color: #9fd264;
}


/* Подключение шрифтов Nunito и Amatic*/
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;400;600;800&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* Общие стили */
body,
a,
button {
    font-family: "Nunito", sans-serif;
}

html,
body {
    /* height: 100%; */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Заголовки */
h1,
h2,
h3 {
    margin: 0 0 10px;
}

h1 {
    font-size: 24px;
    margin: 0 0 10px;
    display: block;
    padding: 18px 20px 20px;
    background: var(--message-color);
}

h2,
h3 {
    font-size: 18px;
}

/* Ссылки */
a {
    color: var(--links-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 2px;
}

/* Фиксированный хедер */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--secondary-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Основной контент с отступами, чтобы не перекрывался */
.main-content {
    padding-top: 80px;
    /* Отступ на высоту хедера */
    padding-bottom: 50px;
    /* Отступ на высоту футера */
    /* overflow-y: auto; /* Добавляет прокрутку, если контента много */
}

/* Фиксированный футер */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    /* Установи нужную высоту */
    background-color: var(--secondary-color);
    z-index: 1000;
}

/* Навигация */
header {
    background-color: var(--secondary-color);
    padding: 14px 0px;
}

header nav {
    display: flex;
    justify-content: flex-begin;
    align-items: center;
}

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

header nav ul li {
    margin: 0 8px;
}

header nav ul li a {
    color: var(--background-color);
    padding: 16px 12px;
    transition: background-color 0.2s;
}

header nav ul li a:hover {
    background-color: var(--alert-color);
}

/* Кнопки */
button,
.button {
    background-color: var(--button-color);
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button:hover {
    background-color: var(--button-hover-color);
}

.form-button {
    margin: 35px 0 5px 20px;
}

/* Контейнеры */
.notification-container {
    margin: 20px auto;
    padding: 16px 23px;
    background-color: var(--message-color);
    /* Светлый цвет для выделения */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.auth-container {
    margin: 20px auto;
    position: relative;
    /* Светлый цвет для выделения */
    box-shadow: 0 7px 8px rgba(0, 0, 0, 0.15);
}

.notification-container a {
    margin-top: 10px;
    display: inline-block;
}

/* Основной контент */
main {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
}

/* Формы */
form {
    padding: 20px 20px 20px 0;
    margin-bottom: 20px;
}

.play-column {
    width: 40px;
}

.last-column form {
    padding: 4px;
    margin-bottom: 0px;
}

form .form-group {
    margin: 20px;
}

form .form-group label {
    display: block;
    font-weight: bold;
}

form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--message-color);
    border-radius: 2px;
    font-size: 14px;
}

form .form-group input:focus {
    border: 1px solid var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(139, 201, 64, 0.5);
    /* Тень для эффекта */
}


.real-checkbox {
    visibility: hidden;
}

.checkbox-accept {
    margin: -10px auto 20px;
    /* text-align: center; */
}

.checkbox-accept>div::before {
    content: '';
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    top: 4px;
    margin-left: -35px;
    /* переносим чекбокс левее */
    margin-right: 17px;
    /* отодвигаем первую строку вправо */
    background: transparent;
    box-shadow: inset 0 0 0 10px white;
    border: 2px solid rgba(98, 96, 104, 0.1);
    ;
    transition: box-shadow 0.2s ease;
}

.checkbox-accept>.real-checkbox:checked+div::before {
    background: #29B961;
    box-shadow: inset 0 0 0 3px white;
}

.real-checkbox+div {
    padding-left: 35px;
    font-weight: 100;
    line-height: 18px;
}

label.checkbox-accept {
    display: flex;
    margin-bottom: 10px;
}

.logout-button {
    background-color: var(--secondary-color);
    font-size: 14px;
    text-align: center;
    padding: 9px 12px;
    /* Увеличиваем кликабельную зону */
    margin: -6px 0;
    /* Компенсируем увеличение высоты */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: var(--background-color);
    border: none;
    /* Убираем рамку кнопки */
    border-radius: 3px;
    /* Скругление углов для консистентности */
    transition: background-color 0.2s ease;
    /* Эффект наведения */
}

.logout-button:hover {
    background-color: var(--alert-color);
}

.header {
    margin: 0;
    padding: 0;
    display: inline-block;
    /* Убедиться, что форма не нарушает верстку */
}

/* Уведомления */
.alert {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: var(--message-color);
}

.alert-danger {
    background-color: var(--alert-color);
}

/* 📌 Футер */
.main-footer {
    text-align: left;
    background-color: var(--secondary-color);
    color: var(--background-color);
    width: 100%;
    font-size: 12px;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.main-footer div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    span {
        margin-left: 20px;
    }
}

/* 📌 Меню футера */
.main-footer ul {
    padding: 0;
    list-style: none;
    display: flex;
}

.main-footer ul li {
    margin: 0;
}

.main-footer ul li a {
    color: var(--message-color);
    text-decoration: none;
    padding: 13px 20px;
    transition: all .25s ease;
}

.main-footer ul li a:hover {
    background: var(--links-color);
    text-decoration: none;
    padding: 13px 20px;
}

/* 📌 Адаптация для мобильных */
@media (max-width: 768px) {

    /* Фиксированный футер */
    .main-footer {
        height: 61px;
        /* Установи нужную высоту */
        line-height: 10px;
    }

    .main-footer {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-footer div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
    }

    .main-footer ul {
        order: -1;
        /* Ставим список ссылок первой строкой */
    }

    .main-footer span {
        order: 2;
        /* Копирайт идет вторым */
        padding: 0;
    }

    .footer ul li {
        display: inline-block;
        margin: 0;
    }

    .main-footer ul li a {
        padding: 0px 15px;
    }

}


/* Общий стиль модального окна */
.modal {
    position: absolute;
    top: 30%;
    margin: 0 auto;
    width: fit-content;
    max-width: 600px;
    padding: 12px 30px 16px;
    z-index: 1000;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--message-color);
}

/* Задний фон для затемнения */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay:not(.hidden) {
    display: block;
    /* Показать при удалении класса hidden */
}

/* Разные стили для типов сообщений */
.modal.info {
    background-color: var(--message-color);
}

.modal.alert {
    background-color: var(--secondary-color);
}

.modal.error {
    background-color: var(--alert-color);
}

/* Текст внутри модального окна */
.modal .modal-text {
    font-size: 16px;
}

.modal.logfile {
    overflow-y: auto;
    overflow-x: hidden;
    height: fit-content;
    max-height: 70%;
    background-color: var(--message-color);
    max-width: 800px;
    top: 50%;
}


.modal.logfile p {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
}

/* Кнопка закрытия (опционально) */
.modal .close-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.auth-links {
    padding: 12px 20px;
    text-align: center;
}

.auth-links a {
    padding: 8px;
}


.field-error {
    display: none;
    /* Скрываем по умолчанию */
    position: absolute;
    /* Позиционирование для привязки к полю 
    top: -12px;
    /* Расположить ниже поля */
    left: 40px;
    background-color: var(--background-color);
    /* Светло-оранжевый фон */
    border: 1px solid var(--alert-color);
    /* Оранжевая рамка */
    border-radius: 3px;
    color: var(--error-color);
    /* Текст оранжевого оттенка */
    font-size: 16px;
    padding: 8px 12px;
    margin-top: 5px;
    /* Отступ от поля */
    max-width: 90%;
    /* Динамическая ширина */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Тень для объема */
    z-index: 10000000000;
    /* Выше остальных элементов */
}

/* Медиа-запрос для смартфонов */
@media (max-width: 768px) {
    .modal {
        width: 75%;
        top: 30%;
    }

    .field-error {
        max-width: 75%;
    }
}

.field-error.active {
    display: block;
    /* Показываем только при ошибке */
}

.field-error::before {
    content: '';
    position: absolute;
    top: -14px;
    /* Выше рамки */
    left: 9px;
    /* Смещение стрелочки */
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--alert-color);
    /* Цвет рамки */
}

.field-error::after {
    content: '';
    position: absolute;
    top: -13px;
    /* Выше рамки */
    left: 10px;
    /* Смещение стрелочки */
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 14px solid var(--background-color);
    /* Цвет фона */
}

/* Подсветка полей с ошибками */
.input-error {
    border: 2px solid var(--error-color);
    /* Красная рамка */
    outline: none;
    /* Убираем стандартную обводку */
    box-shadow: 0 0 5px rgba(211, 84, 0, 0.5);
    /* Добавляем тень */
}

th {
    width: 63px;
    background: beige;
    font-size: 16px;
    font-weight: 200;
    padding: 16px 5px;
    line-height: 18px;
}

td {
    text-align: center;
    font-size: 14px;
}

.api-column {
    width: 35px;
}

.js-show-api-key {
    cursor: pointer;
}

.log-file-column {
    width: 170px;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 12px;
}

/* .download-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.download-button:hover {
    color: #0056b3;
} */

.download-arrow {
    top: 2px;
    position: relative;
}

.download-arrow {
    transition: transform 0.2s;
}

.download-button:hover .download-arrow {
    transform: translateY(2px);
}


.modal .modal-actions {
    margin-top: 20px;
    background-color: var(--message-color);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal .btn-primary {
    background-color: var(--button-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    cursor: pointer;
}

.modal .btn-secondary {
    background-color: var(--alert-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    cursor: pointer;
}

button.btn-danger {
    width: 100%;
}

table.styled-table {
    width: 100%;
}

.actions button {
    padding: 12px 20px;
    margin: 10px 0px;
    font-weight: 100;
}

a.btn-primary {
    display: block;
    background: beige;
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    margin: 20px 0 0;
    text-align: center;
    color: var(--links-color);
    border-radius: 3px;
    font-weight: 600;
}


/* 📌 Стили для мобильных устройств */
@media (max-width: 768px) {
    .styled-table thead {
        display: none;
        /* Скрываем заголовки таблицы */
    }

    .styled-table tbody tr {
        display: block;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        background: var(--background-color);
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .styled-table tbody tr td {
        display: block;
        text-align: left;
        padding: 5px 0;
    }

    .styled-table tbody tr td:last-child {
        border-bottom: none;
    }

    /* Добавляем псевдо-заголовки */
    .styled-table tbody tr td:nth-child(1)::before {
        content: "Client ID: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(2)::before {
        content: "API: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(3)::before {
        content: "Журнал: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(4)::before {
        content: "Последний запуск: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(5)::before {
        content: "Всего запусков: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(6)::before {
        content: "Последний платеж: ";
        font-weight: bold;
    }

    .styled-table tbody tr td:nth-child(7)::before {
        content: "Оплачено запусков: ";
        font-weight: bold;
    }

    /* Центрируем кнопки */
    .styled-table tbody tr td:last-child {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    .styled-table tbody tr td:last-child button {
        flex: 1;
        margin: 2px;
    }
}

/* Отключаем автоувеличение масштаба на iOS при вводе */
input[type="number"] {
    font-size: 16px;
    /* Минимальный размер, при котором iOS не увеличивает масштаб */
}


.main-landing {

    h1 {
        font-size: 28px;
        margin: 30px 0 60px;
        display: block;
        background: none;
        padding: 0;
        font-weight: 900;
        color: gray;
        line-height: 34px;
    }

    h2 {
        font-family: "Amatic SC", serif;
        font-size: 64px;
        color: var(--secondary-color);
        font-weight: 200;
        letter-spacing: -2%;
    }

    .big-letters {
        font-size: 3em;
        color: var(--secondary-color);
        font-weight: 100;
        display: block;
        margin: 0px 0 -70px;
        letter-spacing: -4px;
        line-height: 2em;
    }

    p {
        margin: 0 0 40px;
        text-wrap: balance;
    }

    a:hover {
        text-decoration: none;
    }


    .features-section {
        /* padding: 50px 20px; */
        max-width: 900px;
        margin: 0 auto;
    }

    .features-grid {
        display: grid;
        grid-template-columns: 39% 61%;
        gap: 80px 30px;
        margin-top: 20px;
    }

    .feature-item {
        padding: 0 15px;
        font-size: 18px;
        /* border-radius: 6px; */

        text-wrap: balance;

        p {
            margin: 0 0 14px;
        }
    }

    .feature-item:nth-child(odd) {
        color: white;
        font-size: 27px;
        padding: 15px 27px 80px;
        background-color: var(--block-color);
        /* Цвет фона только для нечетных блоков */
        position: relative;
        transition: background 0.1s linear, box-shadow 0.1s linear;
        overflow: hidden;
        /* Скрываем градиент за границами блока */
        max-height: 50px;
    }

    /* Тень изменяется в зависимости от прокрутки */
    .feature-item.test-effect {
        box-shadow: 6px 9px 15px rgba(0, 0, 0, calc(var(--effect-intensity)*0.3));
        border: 1px solid transparent;
        /* Базовая рамка */
        /* border-radius: 8px; */
        border-image-slice: 1;
        border-image-source: conic-gradient(from var(--border-angle), #fff, #daffbf 5%, #74a33e, #74a33e, #518515, #74a33e, #74a33e, #daffbf 95%, #fff)
    }

    /* Градиентный слой */
    .feature-item:nth-child(odd)::before {
        content: "";
        position: absolute;
        top: 0;
        left: -0%;
        /* Градиент выезжает за левую границу */
        width: 200%;
        /* Делаем шире блока в 2 раза */
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 0, 0, 1.3) 40%, rgba(255, 255, 255, 0.6) 60%, rgba(0, 0, 0, 1.3)) 65%;
        /* Пока тестовый */
        mix-blend-mode: screen;
        opacity: var(--effect-intensity);
        /* Управляем интенсивностью */
        transform: translateX(var(--gradient-move));
        /* Двигаем слой */
        transition: opacity 0.1s linear;
    }

    /* 📱 Адаптив: на мобильных — 1 колонка */
    @media (max-width: 768px) {
        .features-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .feature-item:nth-child(even) {
            padding: 0px 0px 20px;
        }
    }

    /* ✅ АНИМАЦИЯ ПОДСВЕТКИ */
    @keyframes glow-border {
        0% {
            border: 2px solid rgba(255, 255, 255, 0);
        }

        50% {
            border: 2px solid rgba(255, 255, 255, 0.8);
        }

        100% {
            border: 2px solid rgba(255, 255, 255, 0);
        }
    }

    @keyframes glow-background {
        0% {
            background: linear-gradient(135deg, var(--block-color), rgba(255, 255, 255, 0.2));
        }

        100% {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), var(--block-color));
        }
    }

    @keyframes glow-shadow {
        0% {
            box-shadow: none;
        }

        50% {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        100% {
            box-shadow: none;
        }
    }

    /* Применение анимации к .feature-item */
    .feature-item.highlight {
        animation: glow-border 2.5s ease-in-out, glow-background 3s ease-in-out, glow-shadow 2.5s ease-in-out;
    }

}

/* Кнопка для лендинга */
.line-btn {
    width: 100%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    margin: 2em 0;
    color: #688349;
    transition: all 0.5s;
    position: relative;
    display: inline-block;
}

.line-btn-one span {
    transition: all 0.3s;
}

.line-btn-one::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 95%;
    z-index: 1;
    opacity: 0;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: rgba(104, 131, 73, 0.7);
    border-bottom-color: rgba(104, 131, 73, 0.7);
    transform: scale(0.1, 1);
    background-color: rgba(84, 136, 20, 0.1);
}

.line-btn-one:hover span {
    letter-spacing: 2px;
}

.line-btn-one:hover::before {
    opacity: 1;
    transform: scale(1, 1);
}

.line-btn-one::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.3s;
    background-color: rgba(84, 136, 20, 0.2);
}

.line-btn-one:hover::after {
    opacity: 0;
    transform: scale(0.1, 1);
}

@keyframes pulse-click {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.line-btn.pulse {
    animation: pulse-click 0.25s ease-in-out;
}

.awesome-list {
    /* Create a new instance of a counter called "my-awesome-list" and set the counter to 0. */
    counter-reset: my-awesome-list;
    display: inline-block;
}

.awesome-list-item {
    /* Increment the "my-awesome-list" counter for every list item. */
    counter-increment: my-awesome-list;
    margin: 2em 0;
    position: relative;
    width: 150%;
}

.awesome-list-item::before {
    /* Display the counter and set the list style for the list. */
    content: counter(my-awesome-list, decimal-leading-zero);
    border: 10px solid #eee;
    border-radius: 50%;
    color: #FFF;
    display: inline-block;
    font-weight: bold;
    font-size: 1.8em;
    line-height: 2.6em;
    position: relative;
    text-align: center;
    vertical-align: middle;
    width: 2.6em;
    z-index: 2;
}

/* Everything else is just basic styling. */
.awesome-list-item>span {
    background: #7f9749;
    border-radius: 4px;
    color: #FFF;
    display: inline-block;
    position: relative;
    line-height: 2em;
    margin: 0 0 0 -2em;
    padding: 1.2em 2em 1.2em 3em;
    vertical-align: middle;
    width: 555px;
}

.awesome-list-item>span::after {
    background: transparent;
    content: "";
    position: absolute;
    top: 24%;
    right: 2%;
    width: 50%;
    height: 50%;
    max-width: 300px;
    z-index: -1;
    border-color: #ccc;

    box-shadow: 0 15px 10px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
}

.awesome-list-item:nth-child(1)::before {
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.awesome-list-item:nth-child(1)>span {
    background: var(--secondary-color);
}

.awesome-list-item:nth-child(2)::before {
    background: var(--sec1);
    box-shadow: 0 0 0 3px var(--sec1);
}

.awesome-list-item:nth-child(2)>span {
    background: var(--sec1);
}

.awesome-list-item:nth-child(3)::before {
    background: var(--sec2);
    box-shadow: 0 0 0 3px var(--sec2);
}

.awesome-list-item:nth-child(3)>span {
    background: var(--sec2);
}

.awesome-list-item:nth-child(4)::before {
    background: var(--sec3);
    box-shadow: 0 0 0 3px var(--sec3);
}

.awesome-list-item:nth-child(4)>span {
    background: var(--sec3);
}

/*General Styling*/

.automation-section {
    background: var(--button-color);
    text-align: center;
    margin: 4em 0 6em;

    h2 {
        font-size: 4em !important;
    }
}

.et_pb_text {
    display: block;
    margin: auto;
    width: fit-content;
    padding: 0 0 24px;
    text-wrap: balance;
    text-align: start;
}

.et_pb_text ol {
    max-width: 500px;
    /*remove if full width*/
    /*    text-align:justify;   */
}

.et_pb_text ol {
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    list-style: none !important;
}

.et_pb_text ol li {
    position: relative;
    margin-top: 0em;
    margin-bottom: 20px;
}

/*number styling - note that you will need to physically add in a span class*/
.et_pb_text ol li .number_divider {
    position: absolute;
    font-weight: 700;
    font-size: 1.6em;
    left: -60px;
    top: -9px;
    color: var(--secondary-color);
}

/*line styling*/
.et_pb_text ol li:before {
    content: "";
    background: var(--secondary-color);
    position: absolute;
    width: 2px;
    top: 1px;
    bottom: -21px;
    left: -24px;
}

/*dot styling*/
.et_pb_text ol li:after {
    content: "";
    background: var(--secondary-color);
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    top: 1px;
    left: -31px;
}

/*removes line from last number*/
.et_pb_text ol li:last-child:before {
    content: "";
    background: var(--button-color);
}

@media (max-width: 768px) {
    .line-btn {
        font-size: 125%;
        margin: 0em 0 2em;
    }

    .main-landing h2,
    div h2 {
        background: #ECEEDF;
        margin: 0 -20px 20px;
        padding: 20px;
    }

    .automation-section {
        background: var(--button-color);
        text-align: center;
        margin: 4em -20px 6em;
        padding: 0 20px;
    }
}

.faq-section {
    width: 100%;
    max-width: 900px;
}

.faq-section details {
    border: 1px solid #ccc;
    margin: 25px 0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--button-color);
}

.faq-section summary {
    padding: 15px 5px;
    height: 50px;
    cursor: pointer;
    background-color: #eff7ee;
    font-weight: bold;
    position: relative;
    list-style: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-wrap: balance;
}

.faq-section summary::marker {
    display: none;
    /* Supprime la flèche par défaut */
}

.faq-section summary::before {
    content: '\0261E';
    font-size: 40px;
    width: 30px;
    text-align: center;
    transition: transform 0.5s ease;
    padding: 20px;
    font-weight: 100;
    color: var(--alert-color);
}

.faq-section details[open] summary::before {
    /*   content: '\0261F'; */
    transform: rotate(450deg);
}

.faq-section .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
    padding: 0 10px;
}

.faq-section details[open] .content {
    max-height: fit-content;
    /* Ajuster si nécessaire */
    /* padding: 24px 10px 0px 62px;      } */

    p {
        margin: 15px 10px 20px;
    }


    .image-container {
        text-align: center;
        cursor: pointer;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .thumbnail {
        display: block;
        max-width: 100%;
        height: auto;
    }

    @media (max-width: 768px) {
        .thumbnail {
            width: 100%;
            cursor: pointer;
        }
    }
}

/* Фон всплывающей модалки */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
}

/* Убираем фиксированный размер контента, чтобы изображение могло выходить за пределы */
.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    overflow: visible;
    /* Разрешаем выход изображения за пределы */
}

/* Само изображение */
.full-image {
    display: block;
    width: auto;
    /* Оригинальный размер */
    height: auto;
    max-width: none;
    max-height: none;
    transform: translate(0, 0) scale(1);
    transition: transform 0.2s ease;
    touch-action: none;
    /* Отключаем стандартную прокрутку, чтобы не мешала свайпам */
}

.pricing-section {

    p {
        padding: 0;
        margin: 0;
    }

    /* 📌 Общий контейнер тарифов */
    .pricing-container {
        text-align: center;
        margin: 40px auto;
        max-width: 1100px;
    }

    /* 📌 Грид-контейнер для карточек */
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    /* 📌 Общие стили карточки тарифа */
    .pricing-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid var(--secondary-color);
    }

    /* 📌 Заголовок тарифа */
    .pricing-card h3 {
        font-size: 22px;
        background: var(--secondary-color);
        color: var(--button-hover-color);
        width: 100%;
        line-height: 66px;
    }

    /* 📌 Цена в месяц (главная) */
    .price-month {
        font-size: 28px;
        font-weight: bold;
        color: var(--secondary-color);
        background: var(--button-color);
        width: 100%;
        margin: 30px 0 5px;
    }

    /* 📌 Полная цена */
    .price-full {
        font-size: 14px;
        color: gray;
        margin-bottom: 15px;
    }

    /* 📌 Скидка */
    .discount {
        font-size: 19px;
        color: gray;
        margin-bottom: -10px;
    }

    .price-descr {
        text-wrap: balance;
        width: 91%;
        line-height: 1.2rem;
        display: flex;
        align-items: center;
        text-align: center;
        height: 95px;
        font-size: 15px;
        margin-top: 20px;
    }

    .discount_num,
    .discount_num1,
    .discount_num2 {
        font-size: 2em;
        font-weight: 900;
        margin-bottom: 10px;
    }

    .discount_num {
        color: #b1d94a;
    }

    .discount_num1 {
        color: #ffd700;
    }

    .discount_num2 {
        color: #ff8401;
    }


    /* 📌 Контейнер кнопки (прижат к низу карточки) */
    .pricing-card a {
        margin-top: auto;
        /* 📌 Кнопка всегда внизу */
        display: block;
        width: 100%;
    }

    /* 📌 Кнопка оплаты */
    .line-btn-payment {
        width: 100%;
        height: 50px;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        color: #688349;
        transition: all 0.5s;
        display: inline-block;
    }

    /* 📌 Адаптация для мобильных */
    @media (max-width: 1100px) {
        .pricing-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 768px) {
        .pricing-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .price-descr {
            width: initial;
            height: 100%;
        }

        & .price-month {
            margin: 20px 0 0;
        }
    }

    @media (max-width: 500px) {
        .pricing-grid {
            grid-template-columns: 1fr;
        }
    }

    .line-btn-payment {
        width: 100%;
        height: 50px;
        text-align: center;
        line-height: 50px;
        cursor: pointer;
        color: #688349;
        transition: all 0.5s;
        position: relative;
        display: inline-block;
    }
}

.empty-100

/*если нужен просто пустой блок высотой 100 пикс */
    {
    height: 100px;
}

/* 📌 Контейнер с реквизитами */
.contacts-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

/* 📌 Заголовок */
.contacts-container h2 {
    text-align: left;
    /* 📌 Выравниваем по левому краю */
    margin-bottom: 20px;
}

/* 📌 Таблица реквизитов */
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--button-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* 📌 Ячейки таблицы */
.contacts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--secondary-color);
    text-wrap: balance;
    text-align: left;
}

/* 📌 Левая колонка (подписи) */
.contacts-table .label {
    font-weight: bold;
    background: var(--message-color);
    width: 40%;
}

/* 📌 Последняя строка без границы */
.contacts-table tr:last-child td {
    border-bottom: none;
}

/* 📌 Адаптация под мобильные */
@media (max-width: 600px) {
    .contacts-table td {
        display: block;
        text-align: left;
        border-bottom: none;
        /* ❌ Убираем линии между строками */
    }

    /* 📌 Подписи остаются жирными, но НЕ делают "подчеркивание" */
    .contacts-table .label {
        width: 100%;
    }

    /* 📌 Добавляем отступ между блоками */
    .contacts-table tr {
        display: block;
        padding-bottom: 10px;
    }
}

/* Main content container */
.main-content {
    min-height: 100vh;
    background-color: #f5f5f0;
}

/* Sync container */
/* === SYNC (flattened) === */
.sync-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sync-title {
    background: #7a9b5a;
    color: #fff;
    padding: 20px 30px;
    font-size: 36px;
    font-weight: 400;
    border-radius: 8px 8px 0 0;
}

.sync-grid {
    display: flex;
    min-height: 600px;
}

.sync-left,
.sync-right {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 50px;
}

.sync-left {
    background: #e2e7d0;
}

.sync-left form {
    padding: 0;
    margin: 0;
}

.sync-right {
    background: #eee7cd;
    border-left: 1px solid lightgrey;
}

/* вертикальные подписи */
.sync-section-label {
    font-size: 36px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    position: absolute;
    left: -8px;
    top: 30%;
    transform: rotate(-90deg);
    transform-origin: left top;
}

.sync-right .sync-section-label {
    color: white;
}

/* фикс опечатки */

/* кнопки */
.sync-btn {
    background: #c7c2a5;
    color: #6b350c;
    border: none;
    display: block;
    text-align: left;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .3s ease;
    width: 100%;
    max-width: 330px;
}

.sync-btn:hover {
    background: #dfd0a4;
}

.sync-btn-a {
    background: #c7c2a5;
    color: #6b350c;
    border: none;
    display: block;
    text-align: left;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .3s ease;
    width: 100%;
    max-width: 280px;
}

.sync-btn-a:hover {
    background: #dfd0a4;
}

/* таблицы */
.sync-table,
.sync-table-highlight {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    width: 100%;
}

.sync-table-highlight {
    background: #ebff60;
}

.sync-table td,
.sync-table-highlight td {
    padding: 5px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.sync-table tr:last-child td {
    border-bottom: none;
}

.sync-block-title {
    background: #f0f0f0;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

/* disabled вид без текста «нет файла» */
.disabled {
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* зебра (пропускаем первую строку-заголовок) */
.sync-table tr:nth-child(2n+2) td {
    background: #f3f3f7;
}

/* отступ слева 40px для строк, кроме первой */
.sync-table tr:not(:first-child) td {
    padding-left: 40px;
}

.container {
    line-height: normal;
}

.orders-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.header-row {
    display: grid;
    padding: 6px;
    font-size: 12px;
}


.product-header {
    background: #dbf3ee;
    grid-template-columns: 8% 15% 12% 50% 7% 8%;
}

.order-block {
    border: 1px solid #ccc;
    margin-bottom: 12px;
    position: relative;
    /* нужно для абсолютного позиционирования внутри */
}

.order-index {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 10px;
    font-weight: bold;
    color: rgb(20, 84, 126);
    pointer-events: none;
    /* не мешает кликам по кнопкам */
    background: rgba(240, 255, 240, 0.5);
    display: block;
    border: 1px solid #7fbdff;
    padding: 2px 6px;
    text-align: center;
    z-index: 20;
}

.order-block {
    position: relative;
    /* нужно для абсолютного позиционирования внутри */
}

.order-header-top {
    background: #e6e6e6;
    grid-template-columns: 4% 14% 16% 10% 47% 9%;
    font-size: 12px;
}

.order-row.top {
    display: grid;
    grid-template-columns: 4% 14% 16% 10% 47% 9%;
    background: #d9f0ff;
    padding: 8px;
    font-size: 12px;
}

.order-header-bottom {
    background: #f3f3f3;
    grid-template-columns: 8% 16% 10% 48% 10% 5%;
}

.order-row.bottom {
    display: grid;
    grid-template-columns: 8% 16% 10% 48% 10% 5%;
    background: #cfe0eb;
    padding: 6px;
    font-size: 12px;
}

.products {
    border-top: 1px solid #ccc;
}

.product-row {
    display: grid;
    grid-template-columns: 8% 15% 12% 50% 7% 8%;
    font-size: 12px;
}

.product-row div {
    padding: 5px;
}

.product-name {
    font-weight: bold;
    background: #dfe7ec;
}

.customer-name {
    background: #c9d6df;
    padding: 6px 8px;
    margin: -7px 4px;
}

.del-order {
    color: #fff;
    background: #cf7954;
    padding: 6px 13px;
    margin: -7px -15px;
}

.order-row form {
    padding: 0;
    margin: 0;
}

.order-row button {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: #fff;
}


@media (max-width: 768px) {
    .orders-header {
        display: none;
        /* прячем шапку */
    }

    /* === заказ === */

    .order-row.top {
        background: none;
        padding: 0px;
    }

    .order-row.bottom {
        background: none;
        padding: 0px;
    }

    .order-row {
        display: block !important;
        /* отключаем grid */
        background: #eef7ff;
        margin-bottom: 8px;
        padding: 10px;
    }

    .order-row div {
        display: flex;
        padding: 4px;
        font-size: 12px;
    }

    /* 
    .order-row div:last-child {
        border-bottom: none;
    } */

    .order-row div::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        display: inline-block;
        min-width: 86px;
        /* чтобы подписи выровнять */
    }

    /* === товары === */
    .product-row {
        display: block !important;
        /* отключаем grid */
        margin: 6px 0;
        padding: 8px;
        background: #fafafa;
    }

    .product-row div {
        display: flex;
        padding: 0;
        border-bottom: 1px dashed #ddd;
        font-size: 12px;
    }

    .order-empty {
        display: none !important;
    }

    .del-order {
        background: none;

        float: right;
        top: -24px;
        position: relative;
        right: 18px;

    }

    .customer-name {
        background: none;
        margin: 0px !important;
    }

    .product-row div:last-child {
        border-bottom: none;
    }

    .product-name {
        font-weight: bold;
        background: none;
    }

    .product-row div::before {
        content: attr(data-label);
        color: #b0b0b0;
        display: inline-block;
        min-width: 40px;
        font-size: 10px;
    }

    /* кнопка удаления */
    .del-order {
        text-align: right;
    }

    .del-order button {
        padding: 4px 8px;
        font-size: 13px;
        background: #c44;
        color: #fff;
        border: none;
        border-radius: 4px;
    }
}

.pagination-wrapper svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
}