:root {
    --primary: #6d28d9;
    --primary-dark: #4c1d95;
    --primary-soft: rgba(109, 40, 217, 0.08);
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --shadow-soft: 0 8px 30px rgba(17, 24, 39, 0.04);
    --shadow-hover: 0 18px 40px rgba(17, 24, 39, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container-safe: min(100%, 100vw - 24px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #ffffff;
    overflow-x: hidden;
    word-wrap: break-word;
}

img,
svg,
iframe {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: var(--container-safe);
}

.section-padding {
    padding: 78px 0;
}

.section-head {
    margin-bottom: 30px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.surface-soft {
    background: var(--surface-soft);
}

/* NAVBAR */

.navbar-custom {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text) !important;
    min-width: 0;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-link {
    color: #374151 !important;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link-leading-icon {
    width: 16px;
    min-width: 16px;
    text-align: center;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.nav-link-leading-icon-telegram {
    color: #229ED9;
}

.nav-icon {
    font-size: 0.78rem;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.65;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-link-leading-icon {
    color: var(--primary);
}

.nav-link:hover .nav-link-leading-icon-telegram,
.nav-link-telegram .nav-icon {
    color: #229ED9;
}

.nav-link:hover .nav-icon {
    opacity: 1;
}

.nav-link-external:hover .nav-icon {
    transform: translate(1px, -1px);
}

.auth-actions {
    min-width: 0;
}

.auth-actions .btn {
    white-space: nowrap;
}

/* ACCOUNT BUTTON */

.btn-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.btn-account-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.btn-account-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.btn-account-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-account-username {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 2px;
    font-weight: 500;
}

/* BUTTONS */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.25);
    transition: all 0.25s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-custom {
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
    transform: translateY(-1px);
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 86px;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 52%, #ffffff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/landing_background.jpg") no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.7rem, 7vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-dark), #8b5cf6 45%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    gap: 1rem;
}

/* CARDS */

.feature-card,
.price-card,
.article-card,
.support-card,
.location-card,
.footer-card,
.mini-price-box,
.protocol-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.feature-card,
.price-card,
.article-card,
.support-card {
    padding: 26px;
    height: 100%;
    overflow: hidden;
}

.feature-card:hover,
.price-card:hover,
.article-card:hover,
.support-card:hover,
.location-card:hover,
.footer-card:hover,
.mini-price-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #d8dbe2;
}

.icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-card h4,
.support-card h4,
.article-card h4,
.price-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.feature-card p,
.support-card p,
.article-card p,
.price-card p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* PRICING */

.pricing-highlight {
    position: relative;
    overflow: hidden;
}

.pricing-highlight::after {
    content: "Популярно";
    position: absolute;
    top: 18px;
    right: -34px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 42px;
    transform: rotate(38deg);
}

.price-title {
    font-size: 1.24rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.price-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.price-main small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.price-traffic {
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: grid;
    gap: 10px;
}

.price-list li {
    position: relative;
    padding-left: 28px;
    color: #374151;
    line-height: 1.55;
}

.price-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
}

.mini-price-box {
    padding: 22px;
    height: 100%;
}

/* PROTOCOLS */

.protocol-box {
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    padding: 30px;
    height: 100%;
}

.protocol-box h4 {
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.protocol-box p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* LOCATIONS */

.locations-section {
    background:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.06), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.location-card {
    height: 100%;
    text-align: center;
    padding: 24px 18px;
    border: 1px solid #eef2f7;
}

.location-flag-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(109, 40, 217, 0.08), rgba(37, 99, 235, 0.06)),
        #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.75),
        0 10px 24px rgba(17, 24, 39, 0.06);
}

.location-flag {
    font-size: 34px;
    line-height: 1;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
}

.location-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.02rem;
    line-height: 1.3;
}

.location-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

/* ARTICLES */

.article-card {
    position: relative;
}

.article-card-wide {
    padding: 30px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
    padding: 8px 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-card-wide .article-actions {
    margin-top: 18px;
}

/* DASHBOARD CTA */

.dashboard-cta {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 30px;
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
}


.dashboard-cta p {
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.dashboard-cta .section-title,
.dashboard-cta .btn {
    position: relative;
    z-index: 1;
}

.dashboard-cta .btn-account {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.dashboard-cta .btn-account-title {
    color: #fff;
}

.dashboard-cta .btn-account-username {
    color: rgba(255,255,255,0.7);
}

.dashboard-cta .btn-account:hover {
    background: rgba(255,255,255,0.15);
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-link {
    color: #4b5563;
    font-weight: 500;
    line-height: 1.5;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    padding: 26px;
    height: 100%;
    border-radius: 20px;
}

.footer-card-title {
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 500;
    transition: .2s ease;
}

.footer-link-item i {
    width: 18px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.footer-link-item:hover {
    color: var(--primary);
}

.footer-link-item:hover i {
    color: var(--primary);
}

.footer-link-ext {
    font-size: .75rem;
    margin-left: 4px;
    opacity: .6;
}

.footer-legal {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.5;
}

.footer-status-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-status-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.footer-status-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.footer-status-subtitle {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.35;
}

.footer-status-text {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.94rem;
}

.footer-status-widget {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 61px;
}

.footer-status-widget iframe {
    max-width: 100%;
    border: none;
}

.payment-logo {
    max-width: 82px;
    max-height: 40px;
    width: auto;
    height: auto;
    opacity: 0.95;
}

.tooltip-inner {
    max-width: 280px;
    text-align: left;
}

/* RESPONSIVE */

@media (max-width: 1399.98px) {
    .navbar-nav {
        gap: 0.25rem !important;
    }

    .nav-link {
        font-size: 0.96rem;
    }

    .btn-account-username {
        max-width: 170px;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        line-height: 1;
    }

    .article-card-wide {
        padding: 28px;
    }

    .navbar-custom {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-nav {
        padding-top: 12px;
    }

    .nav-link-with-icon {
        gap: 9px;
    }

    .nav-link-leading-icon {
        width: 18px;
        min-width: 18px;
    }

    .auth-actions {
        margin-top: 10px;
    }

    .auth-actions .btn,
    .auth-actions form {
        width: 100%;
    }

    .btn-account {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-account-text {
        min-width: 0;
        flex: 1 1 auto;
    }

    .btn-account-username {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding-top: 116px;
        padding-bottom: 72px;
    }

    .section-padding {
        padding: 68px 0;
    }

    .protocol-box,
    .article-card-wide {
        padding: 26px;
    }

    .pricing-highlight::after {
        top: 16px;
        right: -38px;
        font-size: 0.72rem;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --radius-xl: 20px;
        --radius-lg: 16px;
        --radius-md: 12px;
    }

    .section-padding {
        padding: 56px 0;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
        padding: 0 4px;
    }

    .hero {
        padding-top: 104px;
        padding-bottom: 58px;
    }

    .hero-logo {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.02;
        margin-bottom: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-card,
    .price-card,
    .article-card,
    .support-card,
    .mini-price-box,
    .protocol-box,
    .location-card,
    .footer-card {
        padding: 20px;
    }

    .article-card-wide {
        padding: 22px;
    }

    .icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .price-title {
        font-size: 1.14rem;
    }

    .price-main {
        font-size: 1.7rem;
    }

    .price-list li {
        padding-left: 24px;
        font-size: 0.95rem;
    }

    .price-list li::before {
        width: 10px;
        height: 10px;
        top: 0.5em;
    }

    .location-flag-wrap {
        width: 62px;
        height: 62px;
        margin-bottom: 12px;
    }

    .location-flag {
        font-size: 28px;
    }

    .location-card h5 {
        font-size: 1rem;
    }

    .location-card p {
        font-size: 0.88rem;
    }

    .dashboard-cta {
        padding: 38px 20px;
        border-radius: 24px;
    }

    .dashboard-cta p {
        line-height: 1.7;
    }

    .footer {
        overflow: hidden;
    }

    .footer iframe {
        max-width: 100%;
    }

    .footer-status-logo {
        width: 38px;
        height: 38px;
    }

    .footer-status-title {
        font-size: 0.95rem;
    }

    .footer-status-subtitle {
        font-size: 0.8rem;
    }

    .footer-status-text {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .payment-logo {
        max-width: 72px;
        max-height: 34px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: min(100%, 100vw - 20px);
    }

    .navbar-brand span {
        font-size: 0.95rem;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .btn-primary-custom,
    .btn-outline-custom,
    .btn-logout {
        padding: 0.75rem 1.05rem;
        font-size: 0.95rem;
    }

    .btn-account-title {
        font-size: 0.88rem;
    }

    .btn-account-username {
        font-size: 0.76rem;
    }

    .hero {
        padding-top: 92px;
        padding-bottom: 52px;
    }

    .feature-card h4,
    .support-card h4,
    .article-card h4,
    .price-card h4,
    .protocol-box h4 {
        font-size: 1.04rem;
    }

    .feature-card p,
    .support-card p,
    .article-card p,
    .price-card p,
    .protocol-box p {
        font-size: 0.92rem;
    }

    .price-main {
        font-size: 1.5rem;
    }

    .price-traffic {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .article-tag {
        font-size: 0.78rem;
        padding: 7px 10px;
    }

    .location-card {
        padding: 18px 14px;
    }

    .location-flag-wrap {
        width: 56px;
        height: 56px;
    }

    .location-flag {
        font-size: 24px;
    }

    .location-card h5 {
        font-size: 0.95rem;
    }

    .location-card p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .footer h5,
    .footer h6 {
        font-size: 1rem;
    }

    .footer-link,
    .footer p,
    .footer .text-muted,
    .footer-link-item,
    .footer-legal {
        font-size: 0.92rem;
    }
}

@media (max-width: 399.98px) {
    .section-padding {
        padding: 50px 0;
    }

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

    .btn-primary-custom,
    .btn-outline-custom,
    .btn-logout {
        font-size: 0.9rem;
        padding: 0.72rem 0.95rem;
    }

    .feature-card,
    .price-card,
    .article-card,
    .support-card,
    .mini-price-box,
    .protocol-box,
    .footer-card {
        padding: 18px;
    }

    .article-card-wide {
        padding: 20px;
    }
}