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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #22c55e;
    --bg-1: #ffffff;
    --bg-2: #f8fafc;
    --bg-3: #f1f5f9;
    --bg-dark: #0f172a;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-1);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--bg-3);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--ghost {
    background: transparent;
    color: var(--text-dark);
}

.btn--ghost:hover {
    color: var(--primary);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
}

.accent {
    color: var(--primary);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 56px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 22px;
}

.logo__icon {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--text-dark);
}

.header__btn {
    padding: 12px 24px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span,
.burger::before,
.burger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero__text {
    font-size: 19px;
    color: var(--text-gray);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 48px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.hero__stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

.hero__visual {
    position: relative;
    height: 500px;
}

.hero__phone {
    position: absolute;
    background: var(--text-dark);
    border-radius: 36px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.hero__phone--main {
    width: 260px;
    height: 520px;
    right: 60px;
    top: 0;
    z-index: 2;
}

.hero__phone--secondary {
    width: 220px;
    height: 440px;
    right: 0;
    top: 80px;
    z-index: 1;
    opacity: 0.9;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.phone-screen--trainer {
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
}

.phone-screen--client {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

/* Problem */
.problem {
    padding: 30px 0;
    background: var(--bg-1);
}

.problem__header {
    text-align: center;
    margin-bottom: 48px;
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.problem__card {
    background: var(--bg-2);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--bg-3);
}

.problem__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.problem__text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.problem__solution {
    text-align: center;
}

.problem__solution-text {
    font-size: 24px;
    font-weight: 600;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-2);
}

.features__showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-block--reverse {
    direction: rtl;
}

.feature-block--reverse > * {
    direction: ltr;
}

.feature-block__number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-block__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-block__text {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-block__list {
    list-style: none;
}

.feature-block__list li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-block__list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

.feature-preview {
    height: 400px;
    border-radius: var(--radius-xl);
    background: var(--bg-3);
    position: relative;
    overflow: hidden;
}

.feature-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.1;
}

.feature-preview--exercises {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.feature-preview--workouts {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.feature-preview--nutrition {
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
}

.feature-preview--reports {
    background: linear-gradient(135deg, #f3e8ff 0%, #c4b5fd 100%);
}

.feature-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Benefits */
.benefits {
    padding: 80px 0;
    background: var(--bg-1);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 40px 32px;
}

.benefit-card__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card__text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 20px 0;
    background: var(--bg-2);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    background: var(--bg-3);
    padding: 6px;
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle__btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-toggle__btn--active {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pricing-toggle__badge {
    background: var(--accent);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-1);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    position: relative;
    border: 2px solid var(--bg-3);
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.pricing-card--featured {
    background: var(--bg-dark);
    color: var(--white);
    border-color: var(--bg-dark);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: var(--bg-dark);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-card__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: all 0.3s;
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
}

.price-period {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.6;
    margin-left: 4px;
}

.pricing-card__desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 12px;
}

.pricing-card--featured .pricing-card__desc {
    color: var(--text-light);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card__features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card--featured .pricing-card__features li {
    border-color: rgba(255,255,255,0.1);
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.pricing__note {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--bg-3);
}

.pricing__note p {
    font-size: 16px;
    color: var(--text-dark);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-1);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-2);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--bg-3);
}

.testimonial-card__text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 15px;
}

.testimonial-card__role {
    font-size: 13px;
    color: var(--text-gray);
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: var(--bg-2);
}

.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--bg-3);
}

.faq-item__question {
    padding: 24px 0;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding-bottom: 24px;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta__inner {
    text-align: center;
}

.cta__title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta__text {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta__stores {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.store-link:hover {
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer__desc {
    color: var(--text-light);
    font-size: 14px;
}

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

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer__col a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* Mobile */
@media (max-width: 1024px) {
    .problem__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-block--reverse {
        direction: ltr;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav, .header__btn {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__title {
        font-size: 40px;
    }
    
    .hero__text {
        margin: 0 auto 32px;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .hero__visual {
        display: none;
    }
    
    .problem__grid {
        grid-template-columns: 1fr;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card--featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card--featured:hover {
        transform: translateY(-4px);
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta__title {
        font-size: 36px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile menu */
.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--bg-3);
    box-shadow: var(--shadow);
}


/* Legal pages */
.legal-page {
    padding: 140px 0 80px;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.legal-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--bg-3);
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

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

.legal-date {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--bg-3);
    font-size: 14px;
    color: var(--text-gray);
}


/* Auth Modal */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal__content {
    position: relative;
    background: var(--bg-1);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: var(--shadow-lg);
}

.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.auth-modal__close:hover {
    color: var(--text-dark);
}

.auth-modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-modal__subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 24px;
}

.auth-phone-input {
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--bg-3);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    margin-bottom: 16px;
}

.auth-phone-input__prefix {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    padding-right: 12px;
    border-right: 1px solid var(--bg-3);
    margin-right: 12px;
}

.auth-phone-input__field {
    flex: 1;
    border: none;
    background: none;
    padding: 18px 0;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.auth-phone-input__field::placeholder {
    color: var(--text-light);
}

.auth-modal__privacy {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-modal__privacy a {
    color: var(--primary);
    text-decoration: none;
}

.auth-modal__btn {
    margin-top: 8px;
}

.auth-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-modal__error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}

.auth-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-otp-input {
    width: 50px;
    height: 60px;
    border: 1px solid var(--bg-3);
    border-radius: var(--radius);
    background: var(--bg-2);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    font-family: inherit;
}

.auth-otp-input:focus {
    border-color: var(--primary);
}

.auth-modal__resend {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    cursor: pointer;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--bg-3);
    min-width: 160px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 101;
}

.user-menu__item {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-menu__item:hover {
    background: var(--bg-2);
}

.user-menu__item--logout {
    color: #ef4444;
    border-top: 1px solid var(--bg-3);
}

/* Profile Info */
.profile-info {
    margin: 24px 0;
}

.profile-info__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-3);
}

.profile-info__label {
    color: var(--text-gray);
    font-size: 14px;
}

.profile-info__value {
    font-weight: 500;
    font-size: 14px;
}

/* Header relative positioning for menu */
.header__inner {
    position: relative;
}
