/* Helpogram Custom Styles */

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #5a5a5e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'WebSans', Arial, sans-serif;
}

.lang-btn:hover {
    background: #f4f6f8;
    color: #3aa7ff;
}

.lang-btn.active {
    background: #3aa7ff;
    color: #ffffff;
}

@media screen and (max-width: 640px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Detailed Features Section */
.detailed-features-section {
    background: #ffffff;
    padding: 80px 0;
}

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

.detailed-features-header {
    text-align: center;
    margin-bottom: 60px;
}

.detailed-features-title {
    font-size: 42px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 16px;
    font-family: 'WebSans', Arial, sans-serif;
}

.detailed-features-subtitle {
    font-size: 20px;
    color: #5a5a5e;
    font-weight: 400;
}

/* Pain Points Grid */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.pain-point-card {
    background: #f4f6f8;
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 167, 255, 0.15);
}

.pain-point-title {
    font-size: 24px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 16px;
    font-family: 'WebSans', Arial, sans-serif;
}

.pain-point-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #5a5a5e;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.benefit-card {
    background: #ffffff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #3aa7ff;
    background: #f8fbff;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 12px;
    font-family: 'WebSans', Arial, sans-serif;
}

.benefit-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #5a5a5e;
}

/* Use Cases Section */
.use-cases-section {
    background: linear-gradient(135deg, #3aa7ff 0%, #5bb8ff 100%);
    border-radius: 16px;
    padding: 48px;
    color: #ffffff;
}

.use-cases-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    font-family: 'WebSans', Arial, sans-serif;
}

.use-cases-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.use-case-item {
    font-size: 17px;
    line-height: 1.5;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.use-case-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .detailed-features-section {
        padding: 60px 0;
    }

    .detailed-features-title {
        font-size: 36px;
    }

    .detailed-features-subtitle {
        font-size: 18px;
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .use-cases-section {
        padding: 36px 24px;
    }

    .use-cases-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media screen and (max-width: 640px) {
    .detailed-features-section {
        padding: 40px 0;
    }

    .detailed-features-container {
        padding: 0 16px;
    }

    .detailed-features-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .detailed-features-subtitle {
        font-size: 16px;
    }

    .pain-point-card {
        padding: 24px;
    }

    .pain-point-title {
        font-size: 20px;
    }

    .pain-point-desc {
        font-size: 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 20px;
    }

    .benefit-title {
        font-size: 18px;
    }

    .benefit-desc {
        font-size: 14px;
    }

    .use-cases-section {
        padding: 28px 20px;
    }

    .use-cases-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .use-case-item {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detailed-features-section [class*="card"],
.detailed-features-section [class*="item"] {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.detailed-features-section .pain-point-card:nth-child(1) { animation-delay: 0.1s; }
.detailed-features-section .pain-point-card:nth-child(2) { animation-delay: 0.2s; }
.detailed-features-section .pain-point-card:nth-child(3) { animation-delay: 0.3s; }
.detailed-features-section .pain-point-card:nth-child(4) { animation-delay: 0.4s; }

.detailed-features-section .benefit-card:nth-child(1) { animation-delay: 0.1s; }
.detailed-features-section .benefit-card:nth-child(2) { animation-delay: 0.2s; }
.detailed-features-section .benefit-card:nth-child(3) { animation-delay: 0.3s; }
.detailed-features-section .benefit-card:nth-child(4) { animation-delay: 0.4s; }
.detailed-features-section .benefit-card:nth-child(5) { animation-delay: 0.5s; }
.detailed-features-section .benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* Fix: Menu overlap with language switcher */
.t456__rightwrapper,
.t456__list {
    margin-right: 240px !important;
}

@media screen and (max-width: 980px) {
    .t456__rightwrapper,
    .t456__list {
        margin-right: 0 !important;
    }
}

/* Fix: Modal text overflow for Oferta and Privacy Policy */
.t-popup__container .t390__descr {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left !important;
    padding: 20px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.t-popup__container .t390__descr::-webkit-scrollbar {
    width: 8px;
}

.t-popup__container .t390__descr::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.t-popup__container .t390__descr::-webkit-scrollbar-thumb {
    background: #3aa7ff;
    border-radius: 4px;
}

.t-popup__container .t390__descr::-webkit-scrollbar-thumb:hover {
    background: #2a8fd9;
}

/* Fix: Footer menu items - hide Tarifi button */
.t981__menu-item:has(a[href=""]:not([href="#rec1504338341"]):not([href="https://t.me/helpogrambot"])) {
    display: none;
}

/* Fix: Modal width to prevent horizontal scroll */
.t-popup__container.t-width_6 {
    max-width: 100% !important;
    width: 90% !important;
}

@media screen and (min-width: 768px) {
    .t-popup__container.t-width_6 {
        max-width: 800px !important;
        width: 80% !important;
    }
}

@media screen and (min-width: 1024px) {
    .t-popup__container.t-width_6 {
        max-width: 900px !important;
        width: 70% !important;
    }
}

/* Fix: Hero title line-height */
#rec1504058031 .tn-elem[data-elem-id="1470209944682"] .tn-atom {
    line-height: 1.08 !important;
}