/* =============================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ============================================= */

:root {
    --primary-blue: #1E88E5;
    --primary-blue-dark: #396d97;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-primary: #ffffff;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--background-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =============================================
   АНИМИРОВАННЫЙ ФОН
   ============================================= */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #1E88E5 0%, #396d97 100%);
}

.animated-bg svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* =============================================
   HEADER С РАЗМЫТИЕМ
   ============================================= */

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f7f7f7;
    background-image: url('/images/logo-full.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* =============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================= */

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(30, 136, 229, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =============================================
   КНОПКИ
   ============================================= */

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: rgba(72, 171, 252, 0.27);
    color: #3f5370ff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(43, 191, 250, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    padding: 6rem 0 4rem;
    position: relative;
    background: transparent;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    min-height: 350px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    margin-top: 3rem;
}

/* =============================================
   IPAD SHOWCASE
   ============================================= */

.ipad-showcase {
    position: relative;
    z-index: 15;
    margin: -120px auto -120px;
    padding: 0 20px;
    max-width: 1400px;
}

.ipad-device {
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.ipad-frame {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 20px;
}

.ipad-screen {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
}

.slide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: linear-gradient(135deg, #1E88E5, #396d97);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(31, 94, 149, 0.95), rgba(111, 166, 210, 0.7), transparent);
    padding: 40px 30px 30px;
    color: white;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-caption p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scaleX(1.5);
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.features {
    margin-top: 50px;
    padding: 150px 0 5rem;
    background: transparent;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* =============================================
   PRICING SECTION
   ============================================= */

.pricing {
    padding: 5rem 0;
    background: transparent;
}

.pricing-wrapper {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.pricing-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all var(--transition-normal);
}

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

.pricing-card.popular {
    background: linear-gradient(135deg, #1E88E5, #396d97);
    color: white;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.price-currency {
    font-size: 1.25rem;
    opacity: 0.8;
}

.pricing-description {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.pricing-params {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pricing-card.popular .pricing-params {
    background: rgba(255, 255, 255, 0.2);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.pricing-features i {
    color: #4CAF50;
    font-size: 0.75rem;
}

.pricing-card.popular .pricing-features i {
    color: white;
}

.pricing-extra {
    color: #1E88E5;
    font-style: italic;
}

.pricing-card.popular .pricing-extra {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.how-it-works {
    padding: 5rem 0;
    background: transparent;
}

.how-it-works .section-header h2,
.how-it-works .section-header p {
    color: white;
}

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

.step {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all var(--transition-normal);
}

.step:hover .step-number {
    transform: rotate(360deg) scale(1.1);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* =============================================
   IN DEVELOPMENT
   ============================================= */

.development {
    padding: 5rem 0;
    background: transparent;
}

.development .section-header h2,
.development .section-header p {
    color: white;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dev-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 2.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.dev-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.dev-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.dev-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.dev-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2.5rem;
}

.cta .btn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 3rem 0 2rem;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-wrapper {
    width: 30px;
    height: 30px;
    background-color: #f7f7f7;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .ipad-showcase {
        margin: 20px auto;
    }

    .ipad-device {
        width: 100%;
    }

    .slide-caption h3 {
        font-size: 1.2rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .features {
        padding-top: 100px;
    }

    .features-grid,
    .steps-grid,
    .dev-grid {
        grid-template-columns: 1fr;
    }

    .pricing-wrapper {
        padding: 2rem 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* =============================================
   DOCUMENTS PAGE STYLES
   ============================================= */

/* Breadcrumbs */
.breadcrumbs-section {
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 10;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.625rem;
}

.breadcrumbs span {
    color: white;
    font-weight: 500;
}

/* Document Section */
.document-section {
    padding: 2rem 0 5rem;
    position: relative;
    z-index: 10;
}

.document-wrapper {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.document-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Typography */
.document-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 1rem;
}

.document-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.document-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.document-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.document-content ul li {
    margin-bottom: 0.5rem;
}

/* Special Blocks */
.document-date {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.important-notice {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.warning-block {
    background: #FEE2E2;
    border-left: 4px solid #EF4444;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.warning-block p {
    margin-bottom: 0.5rem;
}

.warning-block ul {
    margin-bottom: 0;
}

.contact-info {
    background: #F3F4F6;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.requisites {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
}

/* Agreement footer */
.agreement-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #E5E7EB;
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
}

/* Active link in footer */
.footer-links a.active {
    color: white;
    font-weight: 600;
    position: relative;
}

.footer-links a.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

/* HR styling */
.document-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 2rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .breadcrumbs-section {
        padding: 5rem 0 1rem;
    }
    
    .document-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .document-content h1 {
        font-size: 1.75rem;
    }
    
    .document-content h2 {
        font-size: 1.5rem;
    }
    
    .document-content h3 {
        font-size: 1.125rem;
    }
    
    .document-content {
        font-size: 0.9375rem;
    }
    
    .document-content p {
        text-align: left;
    }
    
    .document-content ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        font-size: 0.8125rem;
    }
    
    .document-wrapper {
        padding: 1.5rem 1rem;
    }
}