:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ED;
    --secondary-color: #303030;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --dark-bg: #000000;
    --light-bg: #fbfbfd;
    --off-white: #f5f5f7;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Базовые стили */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--light-text);
}

/* Навигация */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1 !important;
}

/* Кнопки */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #3a5cd0 0%, #5d4dbe 100%);
}

.btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-outline-primary {
    color: #4169e1;
    border-color: #4169e1;
}

.btn-outline-primary:hover {
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    border-color: #4169e1;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Герой-секция */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/images/grid-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Особенности */
.feature-section {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    height: 100%;
    transition: all 0.3s ease;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.feature-card p {
    color: var(--light-text);
    margin-bottom: 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Скриншот приложения */
.app-showcase {
    padding: 100px 0;
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.app-image {
    position: relative;
    transition: var(--transition);
}

.app-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-5deg);
}

.app-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.app-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2), rgba(0, 113, 227, 0));
    border-radius: calc(var(--border-radius) + 20px);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.app-image:hover::before {
    opacity: 1;
}

.app-features {
    padding-left: 2rem;
}

.app-features h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.app-features .lead {
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--light-text);
}

.feature-list li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Загрузки */
.download-section {
    padding: 100px 0;
}

.download-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card:hover::before {
    height: 8px;
}

.version-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.download-card h3 {
    margin-bottom: 1.5rem;
}

.system-req {
    background-color: var(--off-white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.system-req h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.system-req-list {
    column-count: 2;
    column-gap: 2rem;
}

.system-req-list li {
    margin-bottom: 0.75rem;
    break-inside: avoid;
}

.changelog {
    margin-top: 4rem;
}

.changelog-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

/* Контакты */
.contact-section {
    padding: 100px 0;
}

.contact-card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--off-white);
    border-radius: var(--border-radius) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 113, 227, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 113, 227, 0.5);
}

.accordion-button::after {
    background-size: 1rem;
    transition: var(--transition);
}

.accordion-body {
    padding: 1.25rem;
    color: var(--light-text);
}

/* Футер */
.footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #4169e1;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #4169e1;
    color: white;
    transform: translateY(-3px);
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
    animation-play-state: paused;
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeLeft 1s ease forwards;
    animation-play-state: paused;
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeRight 1s ease forwards;
    animation-play-state: paused;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стилизация страниц с документацией */
.docs-section {
    padding: 5rem 0;
}

.docs-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.docs-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.docs-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4169e1, #6a5acd);
    border-radius: 3px;
}

.docs-content p {
    margin-bottom: 1.5rem;
}

/* Страница ошибки */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

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

/* Адаптивность */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0 6rem;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
    .app-features {
        padding-left: 0;
        margin-top: 3rem;
    }
    .system-req-list {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .navbar {
        padding: 1rem 0;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .feature-section, .app-showcase, .download-section, .contact-section {
        padding: 60px 0;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
    .error-title {
        font-size: 6rem;
    }
    .error-message {
        font-size: 1.5rem;
    }
}

/* Modern Components */
.bg-primary-subtle {
    background-color: rgba(65, 105, 225, 0.1);
}

.text-primary {
    color: #4169e1 !important;
}

/* Additional Styling */
.floating-element {
    animation: floating 6s ease-in-out infinite;
    position: relative;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, 0px); }
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-bg-shape {
    width: 150px;
    height: 150px;
    background-color: rgba(65, 105, 225, 0.03);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    z-index: -1;
}

.hero-bg-gradient {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
}

.stats-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Accordion Styles for FAQ */
.accordion-button:not(.collapsed) {
    background-color: rgba(65, 105, 225, 0.05);
    color: #4169e1;
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(65, 105, 225, 0.25);
    border-color: rgba(65, 105, 225, 0.5);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4169e1 0%, #6a5acd 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, #4169e1, #6a5acd);
    height: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 1050;
    transition: width 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Shape Dividers */
.shape-divider {
    line-height: 0;
    overflow: hidden;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.4em 0.8em;
}

/* Custom List Styling */
.feature-item {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}