/* static/style.css */

/* Глобальные переменные и сброс стилей */
:root {
    --primary-color: #4caf50; /* Зеленый Авито-подобный */
    --primary-hover-color: #3e8e41;
    --secondary-color: #2c3e50; /* Темно-синий для текста */
    --accent-color: #f39c12; /* Оранжевый для акцентов */
    --light-gray-color: #f8f9fa;
    --gray-color: #e9ecef;
    --dark-gray-color: #6c757d;
    --text-color: #343a40;
    --link-color: var(--primary-color);
    --font-family-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff; /* Белый фон для чистоты */
    font-size: 16px; /* Базовый размер шрифта */
}

.container {
    width: 90%;
    max-width: 1140px; /* Ограничение ширины для больших экранов */
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовок сайта */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 25px;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.nav-cta-button {
    background-color: var(--primary-color);
    color: white !important; /* Важно для переопределения цвета ссылки */
    padding: 8px 18px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

/* Секция Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498db 100%); /* Градиент */
    color: white;
    padding: 80px 0;
    text-align: center;
    animation: fadeInHero 1s ease-out;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero h1 span {
    /* Можно добавить другой цвет или стиль для акцента */
    /* color: var(--accent-color); */
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hero-cta {
    background-color: #ffffff; /* Белая кнопка на градиенте */
    color: var(--primary-color);
    font-size: 20px;
}
.hero-cta:hover {
    background-color: #f1f1f1;
}

.hero .small-text {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Секция "Возможности" */
.features-section {
    padding: 70px 0;
    background-color: var(--light-gray-color);
}

.features-section h2,
.how-it-works-section h2,
.call-to-action-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

/* Подчеркивание для заголовков секций */
.features-section h2::after,
.how-it-works-section h2::after,
.call-to-action-section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Адаптивные колонки */
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px; /* Размер иконок-эмодзи */
    margin-bottom: 20px;
    line-height: 1;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: var(--dark-gray-color);
    line-height: 1.6;
}

/* Секция "Как это работает" */
.how-it-works-section {
    padding: 70px 0;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.step-item {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.step-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 16px;
    color: var(--dark-gray-color);
}
.step-item p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.step-item p a:hover {
    text-decoration: underline;
}


/* Секция Call to Action */
.call-to-action-section {
    padding: 70px 0;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
}

.call-to-action-section h2 {
    color: white;
}
.call-to-action-section h2::after {
    background-color: var(--accent-color); /* Оранжевое подчеркивание */
}

.call-to-action-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.large-cta {
    padding: 18px 45px;
    font-size: 20px;
    background-color: var(--accent-color);
}
.large-cta:hover {
    background-color: #e67e22; /* Темнее оранжевый */
}


/* Футер */
.site-footer {
    background: #222; /* Темный футер */
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 15px;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer a {
    color: #77c980; /* Светло-зеленый для ссылок в футере */
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 13px;
    color: #aaa;
    margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero .subtitle {
        font-size: 18px;
    }
    .features-section h2,
    .how-it-works-section h2,
    .call-to-action-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 15px;
    }
    .main-nav a {
        margin: 0 10px; /* Уменьшаем отступы в мобильном меню */
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero .subtitle {
        font-size: 17px;
    }
    .cta-button {
        padding: 12px 28px;
        font-size: 17px;
    }
    .hero-cta {
        font-size: 18px;
    }
    .large-cta {
        padding: 15px 35px;
        font-size: 18px;
    }
    .feature-list, .steps-list {
        grid-template-columns: 1fr; /* Все элементы в одну колонку */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    .main-nav a {
        font-size: 15px;
        margin: 0 7px;
    }
    .nav-cta-button {
        padding: 6px 14px;
    }

    .hero h1 {
        font-size: 26px;
    }
    .hero .subtitle {
        font-size: 15px;
    }
    .features-section h2,
    .how-it-works-section h2,
    .call-to-action-section h2 {
        font-size: 24px;
        margin-bottom: 35px;
    }
    .feature-item h3, .step-item h3 {
        font-size: 20px;
    }
}

/* Анимация для элементов при появлении (если будешь использовать JS для этого) */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Старый стиль для success.html, можно удалить если не используется */
.center {
    /* display: flex; */ /* Это уже есть в body для success/error страниц */
    /* justify-content: center; */
    /* align-items: center; */
    /* flex-direction: column; */
    /* min-height: 100vh; */
    /* text-align: center; */
}

/* Стили для галочки на success.html, если не перенесены в сам HTML */
.checkmark-circle .background {
    /* width: 60px; */
    /* height: 60px; */
    /* border-radius: 50%; */
    /* background: var(--primary-color); */
    /* position: absolute; */
}
.checkmark-circle .checkmark {
    /* border-radius: 5px; */
}
.checkmark-circle .checkmark.draw:after {
    /* animation-delay: 100ms; */
    /* animation-duration: 1s; */
    /* animation-timing-function: ease; */
    /* animation-name: checkmark; */
    /* transform: scaleX(-1) rotate(135deg); */
    /* opacity: 1; */
}

@keyframes checkmark {
    /* 0% { height: 0; width: 0; opacity: 1; } */
    /* 20% { height: 0; width: 10px; opacity: 1; } */
    /* 40% { height: 20px; width: 10px; opacity: 1; } */
    /* 100% { height: 20px; width: 10px; opacity: 1; } */
}

/* static/style.css */

/* ... (все твои предыдущие стили) ... */

/* Стили для плитки "в разработке" */
.feature-item-dev {
    opacity: 0.65; /* Делаем всю плитку немного прозрачнее */
    /* filter: grayscale(30%); */ /* Еще вариант - немного обесцветить */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Добавляем opacity в transition */
}

/* Можно также немного приглушить цвет текста и иконки внутри этой плитки */
.feature-item-dev .feature-icon,
.feature-item-dev h3,
.feature-item-dev p {
    /* Если хочешь, чтобы текст был тоже тусклее, но не за счет общей прозрачности плитки,
       а именно сам цвет текста */
    /* color: #999; */ /* Например, более серый цвет текста, подбери по вкусу */
}

/* Убираем эффект увеличения при наведении, чтобы подчеркнуть неактивность,
   или делаем его менее выраженным */
.feature-item-dev:hover {
    transform: translateY(-2px); /* Меньший сдвиг или вообще убрать */
    opacity: 0.75; /* Можно немного увеличить прозрачность при наведении, но не до полной */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Менее выраженная тень */
}

/* Если хочешь добавить надпись "Скоро" или "В разработке" поверх плитки */
/* .feature-item-dev { */
/* position: relative; /* Нужно для позиционирования псевдоэлемента */
/* } */

/* .feature-item-dev::after { */
/* content: 'Скоро!'; */
/* position: absolute; */
/* top: 10px; */
/* right: 10px; */
/* background-color: var(--accent-color); */
/* color: white; */
/* padding: 3px 8px; */
/* font-size: 12px; */
/* border-radius: 4px; */
/* font-weight: bold; */
/* } */
