/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

/* Telegram brand colors */
.nav-menu a[href*="t.me"] {
    color: #0088cc;
}

.nav-menu a[href*="t.me"]:hover {
    color: #006bb3;
    background: rgba(0, 136, 204, 0.08);
}

.nav-menu a[href*="t.me"] i {
    color: #0088cc;
}

.nav-menu a[href*="t.me"]:hover i {
    color: #006bb3;
}

.nav-download-btn {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-download-btn:hover::before {
    left: 100%;
}

.nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    background: linear-gradient(45deg, #1d4ed8, #1e40af);
}

.nav-download-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-download-btn:hover i {
    transform: scale(1.1);
}

/* Блок ссылок + скачать: на десктопе тянется между лого и правым краем (лого | меню … кнопка) */
.nav-collapsible {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.nav-toggle:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.nav-toggle .fa-times {
    display: none;
}

.navbar.nav-open .nav-toggle .fa-bars {
    display: none;
}

.navbar.nav-open .nav-toggle .fa-times {
    display: inline-block;
}

@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        row-gap: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.35rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-collapsible {
        display: none;
        flex: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(59, 130, 246, 0.15);
    }

    .navbar.nav-open .nav-collapsible {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        align-items: stretch;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-download-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.anchor-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    transition: all 0.3s ease;
}

.anchor-link:hover {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(45deg, #1d4ed8, #1e40af);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}



/* Hero Media */
.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    background: #000;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.video-container:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.play-button i {
    color: white;
    font-size: 2rem;
    margin-left: 4px;
}

/* Floating background elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.card-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Features Main Section */
.features-main {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.features-main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4rem;
    position: relative;
}

.features-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.features-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card-main {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-main:hover::before {
    transform: scaleX(1);
}

.feature-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon-main {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card-main:hover .feature-icon-main {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.feature-icon-main i {
    font-size: 2rem;
    color: white;
}

.feature-card-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card-main p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Why Fastest Section */
.why-fastest {
    padding: 5rem 0;
    background: #ffffff;
}

.kids-comparison-intro {
    max-width: 900px;
    margin: 0 auto 2.25rem;
    padding: 1.5rem 1.75rem;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.why-fastest h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.why-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Restrictions Block */
.restrictions-block h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.restrictions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.restriction-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.restriction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.restriction-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.restriction-icon i {
    font-size: 1.2rem;
    color: white;
}

.restriction-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.restriction-content p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Problem Explanation */
.problem-explanation {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.problem-explanation h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.problem-text p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.problem-text strong {
    color: #ef4444;
    font-weight: 600;
}

.problem-text em {
    color: #64748b;
    font-style: italic;
}

/* New Comparison Table */
.comparison-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-table-new {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-collapse: collapse;
}

.comparison-table-new thead th {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table-new tbody td {
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.row-cloud {
    background: #fef2f2;
}

.row-desktop {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.bot-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.bot-info i {
    font-size: 1.3rem;
}

.speed-bad {
    color: #dc2626;
    font-weight: 600;
}

.speed-good {
    color: #059669;
    font-weight: 600;
}

.badge-bad {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-good {
    background: #dcfce7;
    color: #166534;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-bad {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

.result-good {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.conclusion-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.conclusion-icon i {
    font-size: 1.8rem;
    color: white;
}

.conclusion-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.conclusion-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.conclusion-content strong {
    color: #059669;
    font-weight: 600;
}

.final-note {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid #10b981;
}

.final-note p {
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Step-by-step Features Main */
.steps-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.step-main {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.07), 0 1.5px 6px rgba(59, 130, 246, 0.04);
    padding: 2rem 2.5rem;
    margin: 0.5rem 0;
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.step-main:hover {
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.13), 0 3px 12px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.step-number {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.step-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.step-arrow {
    margin: 0.5rem 0;
    color: #3b82f6;
    font-size: 2rem;
    animation: arrow-bounce 1.2s infinite alternate;
}

@keyframes arrow-bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(8px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-main-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .features-grid-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card-main {
        padding: 2rem;
    }

    .restrictions-list {
        grid-template-columns: 1fr;
    }

    .comparison-table-new {
        font-size: 0.9rem;
    }

    .comparison-table-new thead th {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    .comparison-table-new tbody td {
        padding: 1rem 0.5rem;
    }

    .bot-info {
        flex-direction: column;
        gap: 0.3rem;
    }

    .bot-info i {
        font-size: 1.1rem;
    }

    .conclusion {
        flex-direction: column;
        text-align: center;
    }

    .why-fastest h2 {
        font-size: 2rem;
    }

    .kids-comparison-intro {
        padding: 1.2rem 1.1rem;
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }


}

@media (max-width: 600px) {
    .step-main {
        padding: 1.2rem 1rem;
        min-width: 0;
        max-width: 100%;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    .features-main-title {
        font-size: 2rem;
    }
}

/* Kids Comparison Table */
.kids-comparison-table {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.08);
    border-collapse: collapse;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.kids-comparison-table th {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: #fff;
    padding: 1.1rem 0.5rem;
    font-size: 1.15rem;
    text-align: center;
}

.kids-comparison-table td {
    padding: 1.1rem 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
}

.kids-comparison-table tr:last-child td {
    border-bottom: none;
}

.kids-comparison-table .good {
    color: #059669;
    font-weight: 700;
    font-size: 1.25em;
}

.kids-comparison-table .bad {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.25em;
}

.kids-comparison-table .winner-row td {
    background: linear-gradient(90deg, #f0fdf4 60%, #bbf7d0 100%);
    font-size: 1.15em;
    font-weight: 700;
    border-bottom: none;
}

.kids-comparison-table .winner-row .good {
    color: #059669;
    font-size: 1.3em;
}

.kids-comparison-table .winner-row .bad {
    color: #dc2626;
    font-size: 1.15em;
}

@media (max-width: 700px) {

    .kids-comparison-table th,
    .kids-comparison-table td {
        font-size: 1em;
        padding: 0.7rem 0.2rem;
    }

    .kids-comparison-table {
        font-size: 0.98rem;
    }
}

/* Tariffs Section */
.tariffs-section {
    padding: 6rem 0 5rem 0;
    background: #f8fafc;
}

.tariffs-title {
    text-align: center;
    font-size: 2.7rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3.5rem;
}

/* Tariff Card Styling - Premium Redesign */
.tariffs-grid {
    display: flex;
    /* Changed from grid to flex since there is only one item */
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.tariff-card-main {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
    padding: 3.5rem 3rem;
    /* More spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.tariff-card-main:hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
}

.tariff-card-main.popular {
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: visible;
}

/* Premium Glow Effect for Popular Card */
/* Glow effect removed as requested */
.tariff-card-main.popular::before {
    display: none;
}

.tariff-card-main.popular:hover::before {
    opacity: 1;
}

.tariff-badge {
    position: absolute;
    top: -15px;
    /* Move badge to overlap top edge */
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.tariff-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    color: #2563eb;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.tariff-card-main:hover .tariff-icon {
    transform: scale(1.1) rotate(5deg);
}

.tariff-card-main h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tariff-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.tariff-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -1px;
}

.tariff-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 0.2rem;
    color: #1e293b;
}

.tariff-price .period {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 0.5rem;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-top: 1.5rem;
    /* Add separation */
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Separator line */
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tariff-features li:last-child {
    margin-bottom: 0;
}

.tariff-features .feature-icon {
    font-size: 1rem;
    color: #10b981;
    /* Green checkmark color */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    /* Узкий gutter — карточка почти на всю ширину экрана */
    .tariffs-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .tariffs-grid {
        padding: 0;
    }

    .tariffs-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .tariffs-section {
        padding: 4rem 0;
    }

    .tariff-card-main {
        padding: 2.5rem 1.25rem;
        max-width: none;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .tariff-card-main h3 {
        font-size: 1.5rem;
    }

    .tariff-price .amount {
        font-size: 2.5rem;
    }

    .tariff-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
}

/* Download for Windows Button */
.tariffs-download-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-download-windows {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1.1rem 2.2rem;
    border-radius: 32px;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.13);
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-download-windows i {
    font-size: 1.4rem;
}

.btn-download-windows:hover {
    background: linear-gradient(45deg, #1d4ed8, #3b82f6);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 3rem 0 2rem 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-copy {
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-tg {
    background: linear-gradient(45deg, #0088cc, #006bb3);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.footer-tg i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.footer-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: linear-gradient(45deg, #006bb3, #0088cc);
}

.footer-tg:hover i {
    transform: scale(1.1);
}

/* Footer Contacts */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    text-align: center;
}

.footer-contacts p {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-email {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.3);
}

.footer-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    background: linear-gradient(45deg, #b91c1c, #dc2626);
}

.footer-email i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-email:hover i {
    transform: scale(1.1);
}

.footer-tg-dev {
    background: linear-gradient(45deg, #0088cc, #006bb3);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 136, 204, 0.3);
}

.footer-tg-dev:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    background: linear-gradient(45deg, #006bb3, #0088cc);
}

.footer-tg-dev i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-tg-dev:hover i {
    transform: scale(1.1);
}

@media (max-width: 700px) {
    .tariffs-download-btn-wrap {
        margin-top: 1.2rem;
    }

    .btn-download-windows {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .site-footer {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .footer-copy {
        font-size: 1rem;
    }

    .footer-tg {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .footer-contacts {
        gap: 0.6rem;
    }

    .footer-contacts p {
        font-size: 0.9rem;
    }

    .footer-email,
    .footer-tg-dev {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Help Page Styles */
.help-section {
    padding: calc(8rem + 80px) 0 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.help-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.help-video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* Help Instructions Styles */
.help-instructions {
    max-width: 1000px;
    margin: 1.5rem auto 0 auto;
    position: relative;
    z-index: 1;
}

/* Контент справки из markdown-файла */
.help-markdown {
    max-width: 1000px;
    margin: 0 auto;
    color: #1e293b;
}

.help-markdown h1,
.help-markdown h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    color: #0f172a;
}

.help-markdown h3 {
    font-size: 1.35rem;
    margin: 1.25rem 0 0.75rem;
    color: #0f172a;
}

.help-markdown p,
.help-markdown li {
    font-size: 1.06rem;
    line-height: 1.65;
    color: #334155;
}

.help-markdown img {
    display: block;
    max-width: 100%;
    max-height: 70dvh;
    width: auto;
    height: auto;
    margin: 0.9rem auto 1.8rem;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
}

.instructions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Шаг инструкции: по высоте не больше окна, картинка сжимается под оставшееся место */
.instruction-step {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 4rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    max-height: calc(100dvh - 9rem);
    min-height: 0;
    overflow: hidden;
}

.instruction-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.instruction-step-has-multiple-images {
    max-height: none;
    overflow: visible;
}

.step-number {
    flex-shrink: 0;
    align-self: flex-start;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.instruction-step-has-multiple-images .step-content {
    max-height: none;
    overflow: visible;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

/* Текст шага: отдельный блок на всю ширину, иначе flex сжимает строку */
.step-text {
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

.step-text p {
    margin: 0;
}

.step-text-with-images p {
    margin: 0 0 0.95rem;
}

.step-text-with-images ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-text-with-images li {
    position: relative;
    margin: 1.25rem 0 2rem;
    padding-left: 1.4rem;
}

.step-text-with-images li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.58rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.step-text-with-images li > p:first-child {
    color: #1e293b;
    font-weight: 500;
}

.step-text-with-images p:has(img) {
    margin: 1rem 0 1.4rem;
}

.step-text-with-images img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.step-text-with-images img:hover {
    opacity: 0.95;
}

.step-text p + p,
.step-text p + .highlight,
.step-text .highlight + p,
.step-text p + pre,
.step-text pre + p {
    margin-top: 0.9rem;
}

.step-text a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.step-text a:hover {
    color: #1e40af;
}

.step-text pre,
.step-text .highlight {
    position: relative;
    margin: 0.9rem 0 0;
}

.copy-code-block {
    position: relative;
    max-width: 620px;
    margin: 0.75rem 0 0.95rem;
}

.copy-code-block pre,
.copy-code-block .highlight {
    margin: 0;
}

.step-text pre {
    background: #111827 !important;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 0.9rem 3.75rem 0.9rem 1rem;
    overflow-x: auto;
    font-size: 0.98rem;
    line-height: 1.45;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.step-text code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.copy-code-block pre code,
.copy-code-block pre span {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.copy-code-block pre span {
    display: inline !important;
}

.copy-code-button {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    padding: 0;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.copy-code-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.copy-code-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.copy-code-button.is-copied {
    background: #059669;
}

.copy-icon {
    position: relative;
    width: 1rem;
    height: 1rem;
    display: block;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.copy-icon::before {
    left: 0.05rem;
    top: 0.32rem;
}

.copy-icon::after {
    left: 0.32rem;
    top: 0.05rem;
    background: #2563eb;
}

.copy-code-button:hover .copy-icon::after {
    background: #1d4ed8;
}

.copy-code-button.is-copied .copy-icon::before {
    content: "✓";
    left: 0;
    top: -0.1rem;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1rem;
}

.copy-code-button.is-copied .copy-icon::after {
    display: none;
}

/* Обёртка только для выравнивания — без рамки и тени у скриншота */
.step-images {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-images-multiple {
    flex: 0 0 auto;
}

.step-image {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.step-images-multiple .step-image {
    flex: 0 0 auto;
    min-height: auto;
}

.instruction-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.step-images-multiple .instruction-img {
    max-height: none;
}

.instruction-img:hover {
    opacity: 0.95;
}

.instruction-img.small-image {
    max-width: min(50%, 100%);
    margin: 0 auto;
}

/* Полноэкранный просмотр скриншота (страница помощи) */
/* Закрытый dialog обязан не участвовать в вёрстке — иначе flex «проталкивает» страницу вниз */
.help-image-lightbox:not([open]) {
    display: none !important;
}

.help-image-lightbox[open] {
    width: min(100vw, 100%);
    height: min(100dvh, 100%);
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    padding: 3rem 1.5rem 1.5rem;
    border: none;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-image-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.92);
    cursor: zoom-out;
}

.help-image-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.75);
    cursor: pointer;
    transition: background 0.2s ease;
}

.help-image-lightbox-close:hover {
    background: rgba(51, 65, 85, 0.95);
}

.help-image-lightbox-img {
    max-width: 100%;
    max-height: calc(100dvh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    cursor: default;
}

/* Developer Contacts */
.developer-contacts {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contacts-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.email-card .contact-icon {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
}

.telegram-card .contact-icon {
    background: linear-gradient(45deg, #0088cc, #006bb3);
}

.contact-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.3rem 0;
}

.contact-info p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .developer-contacts {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 15px;
    }

    .contacts-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .contact-card {
        padding: 1.2rem;
        min-width: 0;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .contact-info {
        flex: 1;
        min-width: 0;
    }

    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .help-section {
        padding: calc(6rem + 80px) 0 4rem 0;
    }

    .help-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .help-video-container {
        margin: 0 1rem;
    }

    .video-wrapper {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .help-video {
        border-radius: 8px;
    }

    .help-instructions {
        margin: 1rem 1rem 0 1rem;
    }

    .instructions-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .instruction-step {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding: 2rem;
        max-height: calc(100dvh - 6rem);
    }

    .step-number {
        align-self: flex-start;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .step-content h3 {
        font-size: 1.3rem;
    }

    .step-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .instruction-img.small-image {
        max-width: 80%;
    }
}

/* Download Page Styles */
.download-section {
    padding: calc(8rem + 80px) 0 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.download-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.download-icon i {
    font-size: 2.5rem;
    color: white;
}

.download-card h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.download-card p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-button {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: linear-gradient(45deg, #1d4ed8, #3b82f6);
}

.download-button i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .download-section {
        padding: calc(6rem + 80px) 0 4rem 0;
    }

    .download-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .download-content {
        margin: 0 1rem;
    }

    .download-card {
        padding: 2rem;
        border-radius: 15px;
    }

    .download-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .download-icon i {
        font-size: 2rem;
    }

    .download-card h2 {
        font-size: 1.5rem;
    }

    .download-card p {
        font-size: 1rem;
    }

    .download-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Legal Section */
.legal-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.legal-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.legal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content {
    text-align: center;
}

.legal-answer {
    font-size: 1.5rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(5, 150, 105, 0.2);
}

.legal-explanation {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 4rem 0;
    }

    .legal-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .legal-card {
        margin: 0;
        padding: 2rem 1.25rem;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        border-radius: 15px;
    }

    .legal-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .legal-answer {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }

    .legal-explanation {
        font-size: 1rem;
    }
}

/* FAQ: аккордеон из Markdown (content/faq.md) */
.faq-section {
    padding: 5rem 0 6rem;
    background: #f8fafc;
    position: relative;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.faq-article-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.faq-intro {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.faq-intro p {
    margin-bottom: 0.85rem;
}

.faq-intro p:last-child {
    margin-bottom: 0;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.12);
}

.faq-item[open] {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.14);
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e293b;
    user-select: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

h3.faq-summary-text {
    flex: 1;
    line-height: 1.45;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.faq-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #3b82f6;
    border-bottom: 2px solid #3b82f6;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -0.2rem;
}

.faq-item[open] .faq-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.faq-body {
    padding: 0 1.35rem 1.35rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    overflow-x: visible;
}

.faq-body > *:first-child {
    margin-top: 1rem;
}

.faq-body p {
    margin-bottom: 0.9rem;
}

.faq-body p:last-child {
    margin-bottom: 0;
}

.faq-body strong {
    color: #334155;
}

.faq-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.25rem 0 0.65rem;
}

.faq-body h3:first-child {
    margin-top: 0;
}

.faq-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}

.faq-body ul,
.faq-body ol {
    margin: 0.5rem 0 1rem 1.25rem;
    padding: 0;
}

.faq-body li {
    margin-bottom: 0.4rem;
}

.faq-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.faq-body code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.9em;
}

.faq-body pre code {
    font-size: inherit;
    color: inherit;
}

.faq-body .highlight,
.faq-body pre {
    tab-size: 2;
}

.faq-body table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    margin: 1.15rem 0;
    font-size: 0.92rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
    table-layout: fixed;
}

.faq-body table th {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 0.75rem 0.6rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.faq-body table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.faq-body table tr:last-child td {
    border-bottom: none;
}

.faq-body table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.9);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 0 4.5rem;
    }

    .faq-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .faq-section-title {
        font-size: 1.85rem;
    }

    .faq-article-title {
        font-size: 1rem;
        padding: 0;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .faq-intro {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 1.1rem;
    }

    .faq-accordion {
        max-width: none;
        width: 100%;
    }

    .faq-summary {
        padding: 1rem 0.9rem;
        font-size: 0.98rem;
    }

    .faq-body {
        padding: 0 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    .faq-body table th,
    .faq-body table td {
        padding: 0.55rem 0.35rem;
        font-size: 0.78rem;
    }
}

/* Шаг с несколькими скриншотами должен расти по содержимому на всех брейкпоинтах,
   без внутренней боковой прокрутки и наложения на футер. */
.instruction-step.instruction-step-has-multiple-images {
    max-height: none;
    overflow: visible;
}

.instruction-step.instruction-step-has-multiple-images .step-content {
    max-height: none;
    overflow: visible;
}

/* На телефонах и планшетах карточки инструкции должны идти обычным потоком:
   без внутренней прокрутки, скрытого текста и обрезанных скриншотов. */
@media (max-width: 1024px) {
    .instruction-step {
        max-height: none;
        overflow: visible;
    }

    .instruction-step .step-content {
        max-height: none;
        overflow: visible;
    }

    .instruction-step .step-image,
    .instruction-step .step-images {
        flex: 0 0 auto;
        min-height: auto;
    }

    .instruction-step .instruction-img {
        max-height: none;
    }
}

/* Без внутренней прокрутки на всех экранах: каждая карточка инструкции
   растягивается по тексту и скриншоту, прокручивается только страница. */
.instruction-step {
    max-height: none;
    overflow: visible;
}

.instruction-step .step-content {
    max-height: none;
    overflow: visible;
}

.instruction-step .step-image,
.instruction-step .step-images {
    flex: 0 0 auto;
    min-height: auto;
}

.instruction-step .instruction-img {
    max-height: min(620px, 72vh);
}

.instruction-step .step-text-with-images img {
    max-height: min(620px, 72vh);
}

@media (max-width: 1024px) {
    .instruction-step .instruction-img,
    .instruction-step .step-text-with-images img {
        max-height: min(520px, 68vh);
    }
}

@media (max-width: 600px) {
    .instruction-step .instruction-img,
    .instruction-step .step-text-with-images img {
        max-height: min(420px, 62vh);
    }
}
