/* style.css - Cherry Blossom Theme for Runli.ru */
:root {
    --cherry-blossom: #edafb8;
    --powder-petal: #f7e1d7;
    --dust-grey: #dedbd2;
    --ash-grey: #b0c4b1;
    --iron-grey: #4a5759;
    --text-dark: #2a3439;
    --text-light: #5c6b73;
    --new-green: #8B9D91; /* Новый зелёный цвет */
    --radius: 12px;
    --shadow: 0 8px 24px rgba(74, 87, 89, 0.1);
    --transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--powder-petal) 0%, var(--dust-grey) 100%);
    min-height: 100vh;
    font-weight: 400;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--ash-grey) 0%, var(--iron-grey) 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 87, 89, 0.1);
}

header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: -0.5px;
    font-family: 'Lora', 'Inter', serif;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all var(--transition);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

nav a:hover {
    background-color: rgba(237, 175, 184, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background: white;
    padding: 30px;
    margin: 25px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--dust-grey);
    transition: transform var(--transition), box-shadow var(--transition);
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(176, 196, 177, 0.25);
}

/* Typography */
h1, h2, h3 {
    color: var(--iron-grey);
    font-weight: 500;
    font-family: 'Lora', 'Inter', serif;
    line-height: 1.3;
}

h1 {
    font-size: 2.2em;
    font-weight: 500;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--cherry-blossom);
    padding-bottom: 10px;
    margin-top: 0;
    font-weight: 500;
}

h3 {
    font-size: 1.4em;
    font-weight: 500;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--iron-grey);
    color: white;
    text-align: center;
    padding: 25px 10px;
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
}

footer p {
    color: white;
    font-size: 0.95em;
}

/* Forms */
form {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--dust-grey);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 2px solid var(--dust-grey);
    border-radius: 8px;
    font-size: 16px;
    transition: all var(--transition);
    background: white;
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cherry-blossom);
    box-shadow: 0 0 0 3px rgba(237, 175, 184, 0.2);
}

/* Buttons */
button, .button {
    background: var(--cherry-blossom);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 175, 184, 0.4);
    background: #e89ca8;
}

/* Auth page specific */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--dust-grey);
    font-family: 'Inter', sans-serif;
}

.tab.active {
    background: var(--cherry-blossom);
    color: white;
}

.notice {
    background: var(--powder-petal);
    border-left: 4px solid var(--cherry-blossom);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.notice.success {
    background: rgba(176, 196, 177, 0.2);
    border-left-color: var(--ash-grey);
}

/* Special text styles */
.lead {
    font-size: 1.15em;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

.small {
    font-size: 0.9em;
    color: var(--text-light);
}

/* Новый стиль для заголовков навигации */
.nav-font {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1em;
}

/* Герой-секция - ОБНОВЛЕНА: новый зелёный фон #8B9D91 */
.hero-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background: var(--new-green); /* Новый зелёный цвет */
    margin: 0 0 40px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    color: white;
}

.hero-content h2 {
    font-size: 1.8em;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid var(--cherry-blossom);
}

.hero-content .lead {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    line-height: 1.7;
    color: white;
    font-weight: 400;
}

.auth-section {
    flex: 0 0 400px;
    margin: 0;
}

/* Стили для авторизации - ОБНОВЛЕНЫ: розовый текст для неактивных вкладок */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--radius);
    padding: 4px;
    border: 1px solid var(--dust-grey);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all var(--transition);
    color: var(--cherry-blossom); /* Розовый текст для неактивных вкладок */
}

.auth-tab.active {
    background: var(--cherry-blossom);
    box-shadow: var(--shadow);
    color: white; /* Белый текст для активной вкладки */
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9em;
}

/* Стили для ссылки "Не помню пароль" - ВЕРНУЛИ КАК БЫЛО */
.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

#forgot-password {
    background: none;
    border: none;
    color: var(--cherry-blossom);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: color var(--transition);
}

#forgot-password:hover {
    color: #e89ca8;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.auth-button {
    margin-top: 10px;
}

.terms {
    font-size: 0.8em;
    color: var(--text-light);
    text-align: center;
    margin: 10px 0;
}

/* Стили для красивых чекбоксов */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-card {
    position: relative;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid var(--dust-grey);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 60px;
}

.checkbox-label:hover {
    border-color: var(--cherry-blossom);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 175, 184, 0.15);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-label {
    background: var(--powder-petal);
    border-color: var(--cherry-blossom);
    box-shadow: 0 4px 12px rgba(237, 175, 184, 0.2);
}

.checkbox-icon {
    font-size: 1.2em;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.checkbox-text {
    flex: 1;
    color: var(--text-dark);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 0.85em;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Стили для поля возраста */
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--dust-grey);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--cherry-blossom);
    box-shadow: 0 0 0 3px rgba(237, 175, 184, 0.2);
}

.terms .link {
    color: var(--cherry-blossom);
    text-decoration: none;
    font-weight: 500;
}

.terms .link:hover {
    text-decoration: underline;
}

/* Сетка фич - ОБНОВЛЕНА: новый зелёный фон #8B9D91 */
.features-section {
    background: var(--new-green); /* Новый зелёный цвет */
    color: white;
    padding: 30px;
    margin: 25px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.features-section h2 {
    color: white;
    border-bottom: 2px solid var(--cherry-blossom);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--powder-petal);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--cherry-blossom);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    margin: 0;
    color: var(--iron-grey);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    text-transform: lowercase;
}

/* Стили для страницы Telegram */
.telegram-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.telegram-card {
    background: var(--powder-petal);
    padding: 30px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 4px solid var(--cherry-blossom);
}

.telegram-link {
    display: inline-block;
    background: var(--cherry-blossom);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin: 10px 0;
    transition: all var(--transition);
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 175, 184, 0.4);
    background: #e89ca8;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav a {
        margin: 0 10px;
        padding: 6px 12px;
        display: inline-block;
        margin-bottom: 5px;
    }
    
    main {
        padding: 20px 15px;
    }
    
    section {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }

    .hero-section {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .hero-content h2 {
        font-size: 1.6em;
    }
    
    .auth-section {
        flex: 1;
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-label {
        padding: 12px;
        min-height: 55px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        min-height: 70px;
        padding: 15px;
    }
}
