/* ===== GymTrainer — общие стили ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0c10;
    color: #eef2ff;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary: #0D47A1;
    --primary-light: #1565C0;
    --primary-glow: rgba(13, 71, 161, 0.35);
    --primary-soft: rgba(13, 71, 161, 0.12);
    --primary-border: rgba(13, 71, 161, 0.4);
    --text-muted: #b9c3d9;
    --text-dim: #6f7a93;
}

/* Зернистый фон */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* === Навигация === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2196F3FF 0%, #2196F3FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--primary-light);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2196F3FF;
}

.btn-outline-light {
    border: 1px solid var(--primary-border);
    padding: 8px 20px;
    border-radius: 100px;
    background: transparent;
    color: #2196F3FF;
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-light:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    color: white;
}

/* === Кнопки === */
.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px var(--primary-glow);
    border: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary-border);
}

/* === Hero (главная) === */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0 100px 0;
}

.hero-badge {
    background: var(--primary-soft);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid var(--primary-border);
    margin-bottom: 32px;
    display: inline-block;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(145deg, #2196F3FF 20%, #2196F3FF 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .highlight {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 32px;
    max-width: 800px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    color: #9aa9c2;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Features (главная) === */
.features {
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.3px;
}

.section-title span {
    color: #2196F3FF;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(20, 24, 32, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 36px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-5px);
    background: rgba(25, 30, 40, 0.8);
}

.feature-icon {
    font-size: 2.8rem;
    color: #2196F3FF;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #b0bbd4;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Trainer spotlight === */
.trainer-spotlight {
    padding: 80px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
}

.trainer-info {
    flex: 1.2;
}

.trainer-info .badge {
    background: var(--primary-soft);
    color: #2196F3FF;
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 0.5px solid var(--primary-border);
}

.trainer-info h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.trainer-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.trainer-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 32px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2196F3FF;
}

.trainer-image {
    flex: 0.9;
    background: linear-gradient(145deg, #0a1a2f, #0f1219);
    border-radius: 48px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid var(--primary-border);
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.5);
}

.trainer-image i {
    font-size: 7rem;
    color: #90CAF9;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}

.trainer-image p {
    margin-top: 20px;
    font-weight: 500;
    font-size: 1rem;
    color: #ccc;
}

/* === Legal blocks (главная) === */
.legal-section {
    padding: 80px 0;
    background: rgba(8, 10, 14, 0.7);
}

.legal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.legal-card {
    flex: 1;
    min-width: 240px;
    min-height: 360px;
    background: rgba(18, 22, 28, 0.6);
    border-radius: 28px;
    padding: 28px 26px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.legal-card i {
    font-size: 2rem;
    color: #2196F3FF;
    margin-bottom: 18px;
}

.legal-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
    flex: 1;
}

.legal-card a {
    color: #2196F3FF;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    align-self: flex-start;
}

.legal-card a:hover {
    text-decoration: underline;
}

/* === Contacts === */
.contacts {
    padding: 60px 0 90px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-email {
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    border-radius: 80px;
    margin-top: 32px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-border);
}

.contact-email i {
    font-size: 1.8rem;
    color: #2196F3FF;
}

.contact-email a {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.contact-email a:hover {
    color: #2196F3FF;
}

/* === Legal content pages === */
.legal-content {
    padding: 60px 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2196F3FF, #2196F3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-content .version {
    color: #2196F3FF;
    margin-bottom: 40px;
    font-weight: 500;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    color: #2196F3FF;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    color: #2196F3FF;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 20px 0 20px 40px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: #fff;
}

/* === Price card === */
.price-card {
    background: rgba(18, 22, 28, 0.6);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--primary-border);
}

.price-card table {
    width: 100%;
    border-collapse: collapse;
}

.price-card td,
.price-card th {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.price-card th {
    color: #2196F3FF;
}

/* === Error pages === */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 40px 24px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2196F3FF, #0D47A1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* === Footer === */
.footer-note {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

hr {
    border-color: rgba(255,255,255,0.05);
    margin: 20px 0;
}

/* === Адаптация === */
@media (max-width: 780px) {
    .hero h1 { font-size: 3rem; }
    .navbar { flex-direction: column; align-items: center; }
    .trainer-spotlight { flex-direction: column; }
    .section-title { font-size: 1.8rem; }
    .hero { padding: 50px 0; }
    .legal-content h1 { font-size: 2rem; }
    .error-code { font-size: 5rem; }
}
