:root {
    --container-bg: #f9f9f9;
    --container-border: 3px solid #ddd;
    --container-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple-hover: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%);
    --shadow-purple: 0 4px 15px rgba(102,126,234,0.4);
    --shadow-purple-hover: 0 6px 20px rgba(102,126,234,0.5);
}

.ip-button { background-color: #f1f1f1; color: black; padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; transition: background-color 0.3s ease; position: relative; }

.ip-button:hover { background-color: #dcdcdc; }

.ip-button .flag {
    margin-right: 10px;
}

/* Why Us section */
.why-us-section { width: 100%; max-width: 1000px; margin: 0 auto 24px; padding: 0; }

.why-us-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.why-us-card {
    background: #fdfdfd;
    border: 1px solid #d8dfea;
    border-radius: 12px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.why-us-card:hover {
    border-color: #2e5799;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(0px);
}

.why-us-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.why-us-icon--api {
    background: linear-gradient(135deg, #e8f0fe, #d0e1fd);
    color: #2563eb;
}

.why-us-icon--price {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #16a34a;
}

.why-us-icon--refresh {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.why-us-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.why-us-card p {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

.pricing-intro-copy {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto 18px;
    padding: 0 12px;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #202225;
    letter-spacing: -0.02em;
}

.pricing-intro-copy__line {
    display: block;
}

.pricing-intro-copy__line + .pricing-intro-copy__line {
    margin-top: 2px;
}

.pricing-intro-copy__line--cta {
    white-space: nowrap;
}

.pricing-intro-copy a,
.pricing-intro-copy a:visited,
.pricing-intro-copy a:active {
    color: #1267cf;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-color: currentColor;
}

.pricing-intro-copy a:hover,
.pricing-intro-copy a:focus {
    color: #0b56ab;
}

@media (max-width: 768px) {
    .why-us-grid { grid-template-columns: 1fr; gap: 12px; }
    .why-us-title { font-size: 22px; }
    .why-us-section { padding: 0 12px; }
    .pricing-intro-copy { font-size: 16px; margin-bottom: 14px; line-height: 1.4; }
    .pricing-intro-copy__line--cta { white-space: normal; }
}

@media (max-width: 480px) {
    .why-us-card { padding: 20px 16px 18px; }
    .why-us-card h3 { font-size: 16px; }
    .why-us-card p { font-size: 13px; }
    .pricing-intro-copy { font-size: 15px; line-height: 1.4; }
}

.ip-button .tooltip,
.ip-button .tooltip-bottom {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}
.ip-button .tooltip { bottom: 125%; }
.ip-button .tooltip-bottom { top: 100%; }

.ip-button:hover .tooltip,
.ip-button:hover .tooltip-bottom {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes loginSpinner { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes purchaseFlexPulse { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-4px) scale(1.01); } 70% { transform: translateY(0) scale(1); } 100% { transform: translateY(0) scale(1); } }
@keyframes goodLetterFlash { 0% { opacity: 0.4; } 35% { opacity: 0.92; } 100% { opacity: 0.4; } }
#purchaseFlexContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1020px; /* increased so cards can be wider */
    margin: 0px auto;
    padding: 12px;
    align-items: stretch;
    box-sizing: border-box;
    padding-top: 0px;
}

#purchaseFlexContainer .flex-item {
    /* stronger card presence */
    height: 320px;
    padding: 28px 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* center horizontally for better readability */
    text-align: center;
    width: 100%; /* ensure grid children fill column */
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(3, 12, 30, 0.14);
    transition: transform 0.35s cubic-bezier(.2,.9,.3,1), box-shadow 0.35s ease;
    border: 1px solid rgba(255,255,255,0.035);
    background-blend-mode: overlay;
}

#purchaseFlexContainer .flex-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.08));
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

#purchaseFlexContainer .flex-item h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    z-index: 3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45);
    position: relative; /* needed for pseudo-line placement */
    display: inline-block;
    padding: 6px 16px; /* slight padding so lines don't touch text */
    background: rgba(0,0,0,0.06);
    border-radius: 8px;
}

/* Decorative horizontal lines flanking the duration (7 дней / 30 дней) */
#purchaseFlexContainer .flex-item h3::before,
#purchaseFlexContainer .flex-item h3::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 86px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.18));
    z-index: 2;
}

#purchaseFlexContainer .flex-item h3::before {
    right: calc(100% + 14px); /* place left line to the left of the heading */
}

#purchaseFlexContainer .flex-item h3::after {
    left: calc(100% + 14px); /* place right line to the right of the heading */
}

@media (max-width: 600px) {
    /* hide decorative lines on narrow screens to avoid overflow */
    #purchaseFlexContainer .flex-item h3::before,
    #purchaseFlexContainer .flex-item h3::after { display: none; }
    #purchaseFlexContainer { grid-template-columns: 1fr; max-width: 100%; padding: 0px; margin: 0px auto; }
    #purchaseFlexContainer .flex-item { height: auto; min-height: 220px; padding: 18px; }
    #purchaseFlexContainer .flex-item h3 { font-size: 1.05rem; }
    #purchaseFlexContainer .flex-item .price { font-size: 1.6rem; }
}

#purchaseFlexContainer .flex-item p {
    z-index: 2;
    color: rgba(255,255,255,0.96);
    margin: 0;
    font-weight: 600;
}

#purchaseFlexContainer .flex-item .price {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 8px;
    z-index: 2;
    text-shadow: 0 8px 26px rgba(0,0,0,0.48);
}

#purchaseFlexContainer .flex-item .price-per-day {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.96);
    z-index: 2;
    display: block;
    margin-top: 8px;
}

#purchaseFlexContainer .flex-item button {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #072033;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

#purchaseFlexContainer .flex-item button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

#purchaseFlexContainer .flex-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(2,6,23,0.22);
}

/* Decorative large background letters (visible but de-emphasized) */
#purchaseFlexContainer .flex-item .letter {
    position: absolute;
    right: 12px; /* keep letter mostly inside card so it's visible */
    top: -14px;
    font-size: 7.5rem;
    z-index: 0;
    font-weight: 900;
    transform: rotate(-10deg);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: -6px;
    /* keep base state clean to avoid perceived double-flash */
    text-shadow: none;
}

#purchaseFlexContainer .flex-item.red .letter,
#purchaseFlexContainer .flex-item.green .letter,
#purchaseFlexContainer .flex-item.orange .letter,
#purchaseFlexContainer .flex-item.blue .letter {
    /* increase alpha about 30% from 0.18 -> 0.24 for better baseline visibility */
    color: rgba(255,255,255,0.44);
}

@media (max-width: 1024px) {
    #purchaseFlexContainer { grid-template-columns: repeat(2, 1fr); }
    #purchaseFlexContainer .flex-item { height: 300px; }
    #purchaseFlexContainer .flex-item .letter { font-size: 6rem; right: 8px; top: -10px; }
}

.good-proxies-container {
    width: 100%; /* Ширина контейнера равна ширине экрана */
    max-width: 1000px; /* Максимальная ширина контейнера */
    background-color: var(--container-bg);
    border: var(--container-border);
    border-radius: 8px;
    padding: 20px;
    margin: 10px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left; /* Выровнять текст по левому краю */
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.good-proxies-container::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background-image: url('/img/splash11.webp'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    transform: scale(1.04);
    z-index: 0;
}

.good-proxies-container > * {
    position: relative;
    z-index: 1;
}

.good-proxies-container h1 {
    font-size: 24px; /* Размер заголовка */
    color: #333; /* Тёмно-серый цвет */
    margin-bottom: 16px; /* Отступ снизу */
    text-align: left; /* Явное выравнивание по левому краю */
}

.good-proxies-container p {
    font-size: 16px; /* Размер текста */
    color: #555; /* Средний серый цвет */
    line-height: 1.6; /* Межстрочный интервал */
    margin-bottom: 16px; /* Отступ между абзацами */
    text-align: left; /* Выровнять текст по левому краю */
}

.good-proxies-container ul {
    list-style-type: disc; /* Стилизация маркеров списка */
    margin: 16px 0 16px 20px; /* Отступы сверху, снизу и слева */
    padding: 0; /* Убираем отступы */
    text-align: left; /* Выровнять текст по левому краю */
}

.good-proxies-container ul li {
    font-size: 16px; /* Размер текста в списке */
    color: #444; /* Тёмно-серый цвет */
    margin-bottom: 8px; /* Отступ между элементами списка */
}

.good-proxies-container .good-proxies-cta {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 18px; /* Отступ сверху */
    margin-bottom: 0;
    text-align: left; /* Выровнять текст по левому краю */
    flex-wrap: nowrap;
}

.good-proxies-container .good-proxies-cta .buy-proxy-button {
    position: relative;
    top: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 235px;
    min-width: 235px;
    height: 58px;
    padding: 0 22px;
    font-size: 20px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.65;
    color: #fff;
    background: linear-gradient(180deg, #de6669 0%, #c64d52 100%);
    background-size: 100% 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    animation: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
    white-space: nowrap;
}

.good-proxies-container .good-proxies-cta .buy-proxy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.good-proxies-container .good-proxies-cta-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    height: 90px;
    padding: 18px 36px;
    border-radius: 6px;
    background: #f5e5a8;
    color: #375b94;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.16;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    white-space: normal;
    letter-spacing: -0.01em;
    text-align: left;
}

.good-proxies-container .good-proxies-cta-banner-line {
    display: block;
}

.good-proxies-container .good-proxies-cta-arrow {
    margin-left: 6px;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: inherit;
    flex: 0 0 auto;
}

/* Медиа-запросы для адаптации под мобильные устройства */
@media (max-width: 768px) {
    .good-proxies-container {
        padding: 10px; /* Уменьшаем внутренние отступы для мобильных устройств */
    }

    .good-proxies-container h1 {
        font-size: 20px; /* Уменьшаем размер заголовка для мобильных устройств */
    }

    .good-proxies-container p,
    .good-proxies-container ul li {
        font-size: 14px; /* Уменьшаем размер текста для мобильных устройств */
    }

    .good-proxies-container .good-proxies-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .good-proxies-container .good-proxies-cta .buy-proxy-button,
    .good-proxies-container .good-proxies-cta-banner {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 72px;
    }

    .good-proxies-container .good-proxies-cta .buy-proxy-button {
        white-space: normal;
        justify-content: center;
        font-size: 18px;
        padding: 0 20px;
        width: 100%;
        min-width: 0;
        height: 72px;
    }

    .good-proxies-container .good-proxies-cta-banner {
        font-size: 18px;
        padding: 18px 22px;
    }
}
.buy-proxy-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg, #ff6b6b, #556270);
    background-size: 200% auto;
    background-position: 0 50%;
    border: 2px solid #556270;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-position 0.28s ease;
}

.buy-proxy-button:hover {
    background-position: 100% 50%;
    transform: scale(1.05);
}

/* Стили для SEO блоков */
.seo-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 12px auto 10px;
    padding: 0;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.seo-highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fdfdfd;
    border: 1px solid #d8dfea;
    border-radius: 12px;
    padding: 16px 14px 14px;
    box-shadow: 0 2px 8px rgba(19, 35, 68, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 300px;
    min-height: 300px;
}

.seo-highlight-card:hover {
    transform: translateY(0px);
    border-color: #2e5799;
    box-shadow: 0 8px 18px rgba(20, 53, 121, 0.12);
}

.seo-highlight-card__title {
    min-height: 22px;
    margin: 0 0 8px;
    color: #101114;
    width: 100%;
    font-size: 17px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.seo-highlight-card__media {
    width: 100%;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.seo-highlight-card__image {
    width: min(100%, 140px);
    max-height: 104px;
    object-fit: contain;
    display: block;
}

.seo-highlight-card__headline {
    min-height: 42px;
    margin: 0 0 8px;
    color: #101114;
    width: 100%;
    max-width: 300px;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}

.seo-highlight-card__description {
    margin: 0;
    width: 100%;
    min-height: 56px;
    max-width: 302px;
    color: #1d2430;
    font-size: 14px;
    line-height: 1.32;
}

.seo-highlight-card__actions {
    margin-top: 8px;
    padding-top: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 306px;
}

.seo-highlight-card__link {
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.seo-highlight-card__link:hover,
.seo-highlight-card__link:focus {
    color: #0d66b8;
    text-decoration: none;
}

.seo-highlight-card__divider {
    width: 1px;
    height: 16px;
    background: #cfd6e2;
}

@media (max-width: 1024px) {
    .seo-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .seo-highlight-card {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 700px) {
    .seo-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 12px auto;
        padding: 0;
    }

    .seo-highlight-card {
        height: auto;
        min-height: 0;
        padding: 18px 16px;
    }

    .seo-highlight-card__title {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .seo-highlight-card__media {
        min-height: 128px;
        margin-bottom: 14px;
    }

    .seo-highlight-card__image {
        width: min(100%, 150px);
        max-height: 116px;
    }

    .seo-highlight-card__headline {
        font-size: 18px;
    }

    .seo-highlight-card__description {
        font-size: 14px;
    }

    .seo-highlight-card__actions {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        padding-top: 0;
    }

    .seo-highlight-card__link {
        font-size: 14px;
    }
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 16px;
    background: url("/img/bg-lightl-881.webp") repeat;
    background-color: #f4f4f4;
    color: #333;
    padding: 0 20px 20px;
}

.container, .good-proxies-container, .online-proxies-container { width: 100%; max-width: 1000px; margin: 0 auto 10px; background: var(--container-bg); border: var(--container-border); border-radius: 8px; padding: 20px; box-shadow: var(--container-shadow); }

.online-proxies-container p {
    margin: 5px 0;
}

.online-proxies-container strong {
    color: #000;
    font-weight: bold;
}

.online-proxies-container span {
    color: #0067d4;
    font-weight: bold;
}

.home-service-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
}

.home-service-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.online-proxies-container .home-service-stat__lead,
.online-proxies-container .home-service-stat__tail,
.online-proxies-container .home-service-stat__brand,
.online-proxies-container .home-service-stat__icon,
.online-proxies-container .home-service-stat__wordmark,
.online-proxies-container .home-service-stat__colon,
.online-proxies-container .home-service-stats__sep {
    color: #2f3640;
    font-weight: 400;
}

.home-service-stat__lead,
.home-service-stat__tail,
.home-service-stat__colon {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.home-service-stat__colon {
    margin-right: 1px;
}

.home-service-stat__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.home-service-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
    font-size: 15px;
}

.online-proxies-container .home-service-stat__icon.is-telegram {
    color: #ffffff;
    background: linear-gradient(180deg, #4db5ea, #2496d4);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(36, 150, 212, 0.28);
}

.home-service-stat__avito-dots {
    position: relative;
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
    font-size: 15px;
}

.home-service-stat__avito-dot {
    position: absolute;
    border-radius: 999px;
}

.home-service-stat__avito-dot.is-violet {
    width: 0.34em;
    height: 0.34em;
    top: 1px;
    left: 1px;
    background: #8b5cf6;
}

.home-service-stat__avito-dot.is-blue {
    width: 0.58em;
    height: 0.58em;
    top: 0;
    right: 0;
    background: #54a1ea;
}

.home-service-stat__avito-dot.is-green {
    width: 0.72em;
    height: 0.72em;
    bottom: 0;
    left: 0;
    background: #63d96a;
}

.home-service-stat__avito-dot.is-red {
    width: 0.5em;
    height: 0.5em;
    right: 0;
    bottom: 1px;
    background: #f25f68;
}

.online-proxies-container .home-service-stat__icon.is-mail {
    color: #1877f2;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1;
}

.online-proxies-container .home-service-stat__icon.is-smtp {
    color: #30343b;
}

.home-service-stat__icon-svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-service-stat__icon--text {
    width: auto;
    flex-basis: auto;
}

.home-service-stat__wordmark {
    color: #2f3640;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.home-service-stat__brand.is-telegram .home-service-stat__wordmark {
    color: #50545c;
    font-weight: 400;
}

.home-service-stat__brand.is-avito .home-service-stat__wordmark {
    color: #111111;
    font-weight: 800;
    font-size: 15px;
}

.home-service-stat__brand.is-mail .home-service-stat__wordmark {
    color: #353941;
    font-weight: 500;
    font-size: 15px;
}

.home-service-stat__brand.is-smtp .home-service-stat__wordmark {
    color: #2d3138;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.home-service-stat__google-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
}

.online-proxies-container .home-service-stat__google-letter {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
    font-weight: inherit;
}

.online-proxies-container .home-service-stat__google-letter.is-blue {
    color: #4285f4;
}

.online-proxies-container .home-service-stat__google-letter.is-red {
    color: #ea4335;
}

.online-proxies-container .home-service-stat__google-letter.is-yellow {
    color: #fbbc05;
}

.online-proxies-container .home-service-stat__google-letter.is-green {
    color: #34a853;
}

.home-service-stat__count {
    color: #0067d4;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-service-stat__count:hover,
.home-service-stat__count:focus-visible {
    text-decoration: underline;
}

.home-service-stats__sep {
    color: #8b95a5;
    font-weight: 600;
}

@media (max-width: 700px) {
    .home-service-stats {
        gap: 6px 10px;
    }

    .home-service-stats__sep {
        display: none;
    }

    .home-service-stat {
        justify-content: center;
    }

    .home-service-stat__wordmark {
        font-size: 15px;
    }

    .home-service-stat__lead,
    .home-service-stat__tail,
    .home-service-stat__colon {
        font-size: 14px;
    }

    .home-service-stat__brand.is-avito .home-service-stat__wordmark,
    .home-service-stat__brand.is-mail .home-service-stat__wordmark,
    .home-service-stat__brand.is-smtp .home-service-stat__wordmark {
        font-size: 15px;
    }

    .home-service-stat__google-wordmark {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .home-service-stats {
        padding-top: 12px;
    }

    .home-service-stat__wordmark,
    .home-service-stat__count {
        font-size: 14px;
    }

    .home-service-stat__lead,
    .home-service-stat__tail,
    .home-service-stat__colon {
        font-size: 13px;
    }

    .home-service-stat__brand {
        gap: 6px;
    }

    .home-service-stat__brand.is-avito .home-service-stat__wordmark,
    .home-service-stat__brand.is-mail .home-service-stat__wordmark,
    .home-service-stat__brand.is-smtp .home-service-stat__wordmark {
        font-size: 14px;
    }

    .home-service-stat__icon,
    .home-service-stat__avito-dots {
        width: 1em;
        height: 1em;
        flex-basis: 1em;
        font-size: 14px;
    }

    .home-service-stat__google-wordmark {
        font-size: 14px;
    }
}

/* nav count style: match main online counters */
.nav-count {
    color: #0067d4;
    font-weight: 700;
    margin-left: 6px;
    font-size: 0.95em;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 10px auto;
    width: 100%;
    max-width: 1000px;
}
.flex-container h3 {
    color: #FAFAFA;
}

/* Стили для каждого элемента */
.flex-item {
    width: calc(25% - 7.5px); /* 25% ширины контейнера минус отступ */
    height: 200px; /* Высота элемента */
    border-radius: 8px;
    box-shadow: var(--container-shadow);
    padding: 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Медиазапросы для адаптивности */
@media (max-width: 1024px) {
    .flex-item {
        width: calc(50% - 10px); /* На экранах меньше 1024px элементы будут занимать 50% ширины */
    }
}

@media (max-width: 768px) {
    .flex-item {
        width: calc(100% - 20px); /* На экранах меньше 768px элементы будут занимать 100% ширины */
    }
}

.flex-item:hover {
    transform: scale(1.05);
}

.flex-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    z-index: 1;
}

.flex-item p {
    margin: 5px 0;
    z-index: 1;
}

.flex-item .price {
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
}

.flex-item .price-per-day {
    font-size: 0.9rem;
    margin-bottom: 10px;
    z-index: 1;
}

.flex-item button {
    padding: 10px 20px;
    border: none;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 1;
}

.flex-item button:hover {
    background-color: #333;
    color: #fff;
}

.flex-item.red {
    background: linear-gradient(135deg, #F25320, #F8A990);
}

.flex-item.green {
    background: linear-gradient(135deg, #00b09b, #CAE49E);
}

.flex-item.orange {
    background: linear-gradient(135deg, #f2994a, #F8E4A6);
}

.flex-item.blue {
    background: linear-gradient(135deg, #1c92d2, #f2fcfe);
}

.flex-item .letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    opacity: 0.4;
    z-index: 0;
    transition: opacity 0.2s ease;
}

.purchase-flex-highlight {
    animation: purchaseFlexPulse 1.5s ease;
}

#purchaseFlexContainer .flex-item .letter.letter-flash {
    animation: goodLetterFlash 1.16s ease-out 1;
}

.flex-item.red .letter {
    color: #F25320;
}

.flex-item.green .letter {
    color: #00b09b;
}

.flex-item.orange .letter {
    color: #f2994a;
}

.flex-item.blue .letter {
    color: #1c92d2;
}

@keyframes purchaseFlexPulse {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-4px) scale(1.01); }
    70% { transform: translateY(0) scale(1); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes goodLetterFlash {
    0% {
        opacity: 0.4;
    }
    35% {
        opacity: 0.92;
    }
    100% {
        opacity: 0.4;
    }
}




.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.buttons .open-btn, .buttons .download-btn, .output-col-btns .open-btn, .output-col-btns .download-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(50% - 15px);
    text-align: center;
}
.buttons .download-btn, .output-col-btns .download-btn { background-color: #F25320; }
.buttons .open-btn:hover, .buttons .download-btn:hover, .output-col-btns .open-btn:hover, .output-col-btns .download-btn:hover {
    background-color: #1e7e34;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
.buttons .download-btn:hover, .output-col-btns .download-btn:hover { background-color: #d9451c; }
.buttons .open-btn:active, .buttons .download-btn:active, .output-col-btns .open-btn:active, .output-col-btns .download-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.buttons .open-btn:disabled, .buttons .download-btn:disabled, .output-col-btns .open-btn:disabled, .output-col-btns .download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}



.output-col-btns .open-btn,
.output-col-btns .download-btn {
    width: auto; /* Override the 50% width from the .buttons rule */
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

footer .payment-methods {
    margin-top: 10px;
}

footer .payment-methods img {
    height: 30px;
    margin: 0 5px;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}
input:disabled, 
textarea:disabled, 
select:disabled {
    cursor: not-allowed; /* Запрещающий курсор */
    background-color: #f0f0f0;
}

.invalidKeyMessage,
.invalid-key-message {
    font-weight: bold;
    color: red;
    margin-right: 1px;
    padding: 1px;
    border: 0.5px solid red;
    border-radius: 5px;
    background-color: #ffe6e6;
    display: inline-block;
}
.invalid-key-message-cloud { 
    position: fixed;
    top: 30%; /* Позиция выше, чем по центру */
    left: 50%;
    width: auto;
    transform: translateX(-50%) scale(0.7); /* Начальный масштаб меньше */
    background-color: rgba(255, 0, 0, 0.8); /* Красный фон с полупрозрачностью */
    color: #FFFFFF; /* Белый цвет текста */
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6); /* Голубая тень вокруг */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    max-width: 100%; /* Ограничиваем ширину на больших экранах */
    text-align: left; /* Выравнивание текста по левому краю */
}

/* Анимация для появления */
.invalid-key-message-cloud.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1); /* Полный размер */
}

/* Стили для контейнера с текстом условий использования */
#termsContainer {
    max-height: 400px; /* Ограничение высоты */
    overflow-y: auto;  /* Вертикальная прокрутка */
    padding-right: 5px; /* Отступ справа для скроллбара */
}

/* Merged from the former deferred home stylesheet so the home page uses one CSS file. */
#menuModalContent h2,
#menuModalContent h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

#menuModalContent h3 {
    font-size: 20px;
    margin-top: 24px;
}

#menuModalContent li {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 8px;
}

.country-stats-section {
    width: 100%;
    max-width: 1000px;
    margin: 10px auto 10px;
    background: #f9f9f9;
    padding: 10px;
    border: 3px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.country-stats-title {
    text-align: center;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 12px;
    letter-spacing: 0.3px;
}

.country-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 8px;
}

.country-stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.12s;
    text-decoration: none;
}

.country-stats-item:hover {
    background: #f0f0f0;
}

.country-stats-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-stats-count {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    min-width: 34px;
    text-align: right;
    letter-spacing: 0.2px;
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .country-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .country-stats-item { gap: 6px; padding: 4px 6px; }
    .country-stats-count { min-width: 28px; font-size: 12px; }
}

@media (max-width: 480px) {
    .country-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
    .country-stats-item { gap: 4px; padding: 4px 6px; border-radius: 6px; }
    .country-stats-name { font-size: 13px; flex: 1 1 0; min-width: 0; }
    .country-stats-count { font-size: 13px; min-width: 32px; flex: 0 0 auto; }
    .country-stats-item .flag { margin-right: 6px; width: 16px; height: 12px; flex: 0 0 16px; }
}

@media (max-width: 340px) {
    .country-stats-grid { grid-template-columns: 1fr; gap: 4px 6px; }
    .country-stats-item { justify-content: space-between; padding: 4px 6px; }
    .country-stats-name { font-size: 12px; }
    .country-stats-count { font-size: 12px; min-width: 30px; }
}

.proxy-chart-wrap {
    margin-top: 10px;
    padding: 6px 4px 4px;
    border-top: 1px solid #e0e0e0;
    height: 280px;
}

.proxy-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.proxy-chart-title {
    font-size: 12px;
    color: #888;
    margin: 2px 0 6px;
    font-weight: normal;
}

.proxy-chart-nodata {
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 4px;
}

@media (max-width: 700px) {
    .proxy-chart-wrap { height: clamp(160px, 20vh, 240px); }
}

@media (max-width: 480px) {
    .proxy-chart-wrap { height: clamp(140px, 28vh, 220px); }
}

@media (max-width: 340px) {
    .proxy-chart-wrap { height: clamp(120px, 34vh, 180px); }
}

.slide-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    background: #f9f9f9;
    padding: 20px;
    border: 3px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 8px;
}

.slide-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.slide-content p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .slide-content h3 { font-size: 20px; }
    .slide-content p { font-size: 14px; }
}

@media (max-width: 480px) {
    .slide-content h3 { font-size: 18px; }
    .slide-content p { font-size: 12px; }
}

#login-key:focus {
    border-color: rgba(102,126,234,0.6);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.15);
}

#login-key::placeholder {
    color: rgba(255,255,255,0.4);
}

#loginSubmit.loading {
    opacity: 0.9;
    pointer-events: none;
}

#loginSubmit.loading:after {
    content: '';
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: transparent;
    animation: loginSpinner 0.8s linear infinite;
}

@keyframes loginSpinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

#termsContainer::-webkit-scrollbar {
    width: 10px;
    height: 20px;
}

#termsContainer::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}

#termsContainer::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.modal-content2 { position: fixed; top: 5%; left: 50%; transform: translateX(-50%); background: rgba(30,30,60,0.95); padding: 15px 10px; border: 1px solid rgba(255,255,255,0.15); width: 100%; max-width: 700px; max-height: 85vh; overflow-y: auto; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(100,150,255,0.15); animation: fadeIn 0.5s; color: #ffffff; z-index: 10000; }
.modal-content2 h2 { color: #ffffff; text-align: center; margin-bottom: 25px; font-size: 28px; font-weight: 600; }
.modal-content2 #termsContainer { background: #ffffff; color: #333; padding: 20px; border-radius: 12px; margin-bottom: 20px; max-height: 400px; overflow-y: auto; border: 1px solid #ddd; }
.modal-content2 button { padding: 14px 32px; border: none; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; cursor: pointer; border-radius: 12px; margin-top: 15px; margin-right: 10px; font-size: 16px; font-weight: 600; transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; box-shadow: 0 4px 15px rgba(102,126,234,0.4); }
.modal-content2 button:disabled { background: rgba(255,255,255,0.1); cursor: not-allowed; box-shadow: none; opacity: 0.5; }
.modal-content2 button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,0.6); background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }

.modal-content2 label { display: flex; align-items: center; margin-top: 20px; padding: 15px; background: rgba(255,255,255,0.05); border-radius: 12px; cursor: pointer; transition: background-color 0.3s ease; }
.modal-content2 label:hover { background: rgba(255,255,255,0.08); }
.modal-content2 label input[type="checkbox"] { margin-right: 12px; width: 20px; height: 20px; cursor: pointer; }
.modal-content2 label strong { color: #ffffff; font-size: 15px; }

#payModal.modal, #paymentModal.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); animation: fadeIn 0.3s; }
#payModal .modal-content2 { position: fixed; top: 5%; left: 50%; transform: translateX(-50%); background: rgba(30,30,60,0.95); padding: 15px 10px; border: 1px solid rgba(255,255,255,0.15); width: 100%; max-width: 700px; max-height: 85vh; overflow-y: auto; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(100,150,255,0.15); animation: fadeIn 0.5s; color: #ffffff; z-index: 10000; }

#paymentModal .modal-content {
    background-color: rgba(30,30,60,0.95);
    margin: 3% auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(100,150,255,0.15);
    animation: fadeIn 0.5s;
    position: relative;
    color: #ffffff;
}

#paymentModal .payment-options {
    margin-bottom: 20px;
}

#paymentModal .payment-option {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    gap: 15px;
}

#paymentModal .payment-option button {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    text-align: left;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#paymentModal .payment-option button::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.5s;
}

#paymentModal .payment-option button:hover::before {
    left: 100%;
}

#paymentModal .payment-option button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 8px 25px rgba(76,175,80,0.45);
    transform: translateY(-3px) scale(1.02);
}

#paymentModal .payment-option button:active {
    transform: translateY(-1px) scale(0.98);
}

#paymentModal .payment-option .payment-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#paymentModal .payment-option .payment-methods {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#paymentModal .payment-option .payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#paymentModal .payment-option:hover .payment-badge {
    background: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #paymentModal .payment-option { flex-direction: column; gap: 12px; }
    #paymentModal .payment-option button { width: 100%; text-align: center; }
    #paymentModal .payment-option .payment-methods,
    #paymentModal .payment-option .payment-title { justify-content: center; }
    #payModal .modal-content2 { top: 3%; max-height: 92vh; padding: 14px 10px; }
}

@media (max-width: 768px) {
    body.home-page {
        padding: 0;
    }

    body.home-page .top-bar,
    body.home-page .container,
    body.home-page .good-proxies-container,
    body.home-page .online-proxies-container,
    body.home-page .flex-container,
    body.home-page .slide-container,
    body.home-page .proxy-table-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.home-page .top-bar,
    body.home-page .container,
    body.home-page .good-proxies-container,
    body.home-page .online-proxies-container,
    body.home-page .slide-container,
    body.home-page .proxy-table-container {
        border-radius: 0;
    }
}

