/* Additional CSS for SpyGrabs improvements */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.b-header__actions-toggle .hamburger-bar,
.b-header__mobile-menu-toggle .hamburger-bar,
.scroll-top {
    background: none;
    border: 0;
    cursor: pointer;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}

.language-switcher button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button.is-active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.language-switcher--mobile {
    margin: 16px 0;
    justify-content: center;
}

.language-switcher--mobile button {
    border-color: rgba(0, 0, 0, 0.2);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .language-switcher,
body.rtl .language-switcher--mobile {
    flex-direction: row-reverse;
}

.hero-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 12px;
}

.hero-lead {
    font-size: 20px;
    color: #3b3e4b;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-cta__button {
    align-self: flex-start;
}

.hero-trust {
    font-size: 15px;
    color: #3b3e4b;
    max-width: 420px;
}

.hero-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.hero-step {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 14px 24px rgba(13, 110, 253, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px rgba(13, 110, 253, 0.12);
}

.hero-step__badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.capability-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 22px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: 0 12px 28px rgba(35, 40, 52, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(35, 40, 52, 0.12);
}

.capability-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(13,110,253,0.15), rgba(102,16,242,0.18));
    color: #0d6efd;
}

.capability-card__icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.capability-cta {
    text-align: center;
}

.b-onboarding {
    background: #f7f9ff;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.onboarding-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid rgba(13,110,253,0.08);
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.07);
}

.b-reasons {
    text-align: center;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.reason-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid rgba(35, 40, 52, 0.08);
    box-shadow: 0 16px 30px rgba(35, 40, 52, 0.1);
}

.reason-card__metric {
    font-size: 28px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 10px;
}

.b-ai {
    background: radial-gradient(circle at top left, rgba(13,110,253,0.12), transparent 55%), #fff;
}

.ai-header {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ai-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(13,110,253,0.08);
    box-shadow: 0 14px 24px rgba(13, 110, 253, 0.09);
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn.btn-outline {
    border: 1px solid rgba(13, 110, 253, 0.4);
    color: #0d6efd;
    background: transparent;
}

.btn.btn-outline:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.articles-cta {
    text-align: center;
    margin-top: 28px;
}

.footer-benefits {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.footer-benefits li {
    margin-bottom: 8px;
    color: #3b3e4b;
    font-size: 14px;
}

.icon-telegram {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 10px;
}

.btn.btn--icon-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.rtl .hero-step__badge {
    margin-left: auto;
}

body.rtl .hero-cta {
    align-items: flex-end;
}

.article-page {
    background: #f7f9ff;
    padding: 40px 0 80px;
}

.article-language {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(35, 40, 52, 0.12);
    margin: 0 auto 32px;
    max-width: 1040px;
    padding: 40px 48px;
}

.article-hero {
    margin-bottom: 32px;
}

.article-hero__kicker {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-hero__lead {
    font-size: 18px;
    color: #343848;
    margin-bottom: 18px;
}

.article-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
    color: #3b3e4b;
    font-size: 14px;
}

.article-hero__image {
    width: 100%;
    border-radius: 18px;
    margin-top: 10px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 28px;
}

.article-layout--wide {
    grid-template-columns: minmax(0, 1fr);
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-sidebar__block {
    background: #f7f9ff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px dashed rgba(13,110,253,0.25);
}

.article-sidebar__block h3 {
    margin-top: 0;
}

.article-sidebar__cta {
    margin-top: auto;
}

.article-main section {
    margin-bottom: 28px;
}

.article-main ul,
.article-main ol {
    margin-left: 18px;
}

.article-callout {
    background: linear-gradient(135deg, rgba(13,110,253,0.12), rgba(102,16,242,0.12));
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0;
    color: #20253a;
    font-weight: 500;
}

.article-cta {
    background: #f7f9ff;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.faq-list details {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(13,110,253,0.12);
    padding: 16px 18px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list details[open] {
    box-shadow: 0 12px 24px rgba(13,110,253,0.1);
}

.faq-list details p {
    margin-top: 12px;
    color: #3b3e4b;
}

@media (max-width: 991px) {
    .article-language {
        padding: 30px 24px;
    }
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .article-sidebar__cta {
        width: 100%;
        justify-content: center;
    }
}

body.rtl .article-language {
    text-align: right;
}

body.rtl .article-hero__stats {
    justify-content: flex-end;
}

body.rtl .faq-list summary {
    text-align: right;
}

body.rtl .capability-card {
    text-align: right;
}

body.rtl .articles-cta,
body.rtl .capability-cta {
    text-align: right;
}

@media (max-width: 991px) {
    .hero-cta__button {
        align-self: stretch;
        justify-content: center;
    }
    .hero-trust {
        max-width: none;
    }
}

.b-header__actions-toggle .hamburger-bar:focus,
.b-header__mobile-menu-toggle .hamburger-bar:focus,
.scroll-top:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#header-actions[aria-hidden="true"] {
    display: none;
}

.site-wrapper {
    opacity: 1;
    overflow: visible;
}

.b-section--center {
    text-align: center;
    padding: 80px 0;
}

.b-section--center .b-actions {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 992px) {
    .b-header__actions-toggle {
        display: none;
    }
}

/* Article tags styling */
.article-meta {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* Useful articles grid */
.useful-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.useful-article-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.useful-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.useful-article-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.useful-article-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.useful-article-card h3 a {
    color: #333;
    text-decoration: none;
}

.useful-article-card h3 a:hover {
    color: #007bff;
}

.useful-article-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.article-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.article-link:hover {
    text-decoration: underline;
}

/* Article separators */
.article-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 30px 0;
}

/* Article CTA section */
.article-cta {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border-left: 4px solid #007bff;
}

.article-cta h2 {
    margin-top: 0;
    color: #1a1a1a;
}

.article-cta .btn-primary {
    margin-top: 20px;
    display: inline-block;
}

/* FAQ styling */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.faq-item ul, .faq-item ol {
    margin: 10px 0;
    padding-left: 25px;
}

.faq-item li {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .useful-articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .useful-article-card {
        padding: 15px;
    }
    
    .useful-article-icon {
        font-size: 2em;
    }
    
    /* Responsive article cards */
    .article-card {
        flex-direction: column;
        text-align: center;
    }
    
    .article-card .article-preview-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Image optimization placeholders */
.webp-image {
    max-width: 100%;
    height: auto;
}

/* Loading optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Article images */
.article-preview-image {
    width: 100%;
    height: auto;
    min-height: 150px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 10px;
}

.article-hero-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}

.article-grid-image {
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 5px;
}

/* Modern article styling (Yandex Zen-like) */
.modern-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.modern-article h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
    color: #1a1a1a;
    text-align: center;
}

.modern-article h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #2a2a2a;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.modern-article h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #3a3a3a;
}

.modern-article p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.modern-article ol, .modern-article ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modern-article li {
    margin-bottom: 10px;
    font-size: 16px;
}

.modern-article li strong {
    color: #1a1a1a;
}

.modern-article a {
    color: #007bff;
    text-decoration: none;
}

.modern-article a:hover {
    text-decoration: underline;
}

.modern-article .article-meta-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modern-article .article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.modern-article .article-tag {
    background-color: #f0f8ff;
    color: #007bff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.modern-article .back-to-articles {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.modern-article .back-to-articles:hover {
    text-decoration: underline;
}

/* Article card styling */
.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.article-card .article-preview-image {
    width: 40%;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0;
    margin-right: 20px;
    background-color: #f8f9fa;
    padding: 10px;
}

.article-card .article-content {
    flex: 1;
}

.article-card h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 10px;
}

.article-card h2 a {
    text-decoration: none;
    color: #333;
}

.article-card h2 a:hover {
    color: #007bff;
}

.article-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-card .article-meta {
    margin-bottom: 15px;
}

.article-card .btn-secondary {
    font-size: 13px;
    padding: 8px 16px;
}

/* FAQ styling */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.faq-item ul, .faq-item ol {
    margin: 10px 0;
    padding-left: 25px;
}

.faq-item li {
    margin-bottom: 8px;
}
