/* ==========================================================================
   1. БАЗОВЫЕ СТИЛИ И АНИМИРОВАННЫЙ ФОН
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
    --accent-color: #f1c40f;
    --text-color: #ffffff;
    --dark-text-color: #1a1a2e;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0;
    background: #1a1a2e; /* Запасной фон, если градиент не загрузится */
}

* {
    box-sizing: border-box;
}

/* Общий контейнер для всех страниц */
.page-container {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Анимированный градиентный фон */
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-size: 400% 400%;
    animation: background-pan 15s ease infinite;
}

/* Внутренний контейнер для ограничения ширины контента */
.content-wrapper {
    width: 100%;
    max-width: 850px; /* Сделали контент шире */
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   2. ОБЩИЕ СТИЛИ ДЛЯ ТИПОГРАФИКИ И КНОПОК
   ========================================================================== */
.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2em;
    font-weight: 900;
    margin: 0 auto 20px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.main-title .highlight-word {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.4em;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 700px;
    font-weight: 400;
}

.subtitle strong {
    color: var(--accent-color);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background-image: linear-gradient(45deg, var(--accent-color) 0%, #f7b733 100%);
    color: var(--dark-text-color);
    padding: 20px 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    margin: 30px auto 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 25px rgba(241, 183, 51, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(241, 183, 51, 0.5);
}

/* ==========================================================================
   3. АНИМАЦИИ (KEYFRAMES)
   ========================================================================== */
@keyframes background-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* src/css/index.css */

/* ... (все ваши предыдущие стили: body, .page-container, и т.д.) ... */


/* ==========================================================================
   4. ОБЩИЕ СТИЛИ ДЛЯ КНОПОК CTA (Call To Action)
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    margin: 30px auto 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Анимация появления для всех кнопок */
    opacity: 0;
    animation: fade-in-up 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Анимация "подергивания" для привлечения внимания */
.cta-button--shaking {
    /* Эта анимация будет применяться только к кнопкам с этим дополнительным классом */
    animation: fade-in-up 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) forwards, 
               subtle-shake 3s infinite 2.5s;
}

@keyframes subtle-shake {
  0%, 10%, 100% { transform: translateY(0); } /* Убрали rotate для более чистого эффекта */
  2%, 6% { transform: translateX(-5px); }
  4%, 8% { transform: translateX(5px); }
}
