:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --text-color: #333;
    --light-bg: #f4f7fe;
    --white: #ffffff;
    --container-width: 1100px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Кнопки */
.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 8px 18px;
    border-radius: 8px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
    display: inline-block;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Features */
.features {
    padding: 100px 0;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

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

.feature-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Mobile App */
.mobile-app {
    padding: 100px 0;
    background: var(--text-color);
    color: var(--white);
}

.mobile-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mobile-text {
    flex: 1;
}

.mobile-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.app-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.version-tag {
    font-size: 14px;
    opacity: 0.8;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    background: #222;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #444;
    transition: 0.3s;
    width: fit-content;
}

.btn-download:hover {
    background: #333;
}

.mobile-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    padding: 15px;
    border: 4px solid #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    background-image: url('/dashboard/favicon.png'); /* Заглушка */
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #888;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-auth {
        margin-left: auto;
    }
    .btn-primary, .btn-outline {
        padding: 6px 12px;
        font-size: 13px;
    }
    .logo {
        font-size: 20px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .mobile-flex {
        flex-direction: column;
        text-align: center;
    }
    .btn-download {
        margin: 0 auto;
    }
}
