/* ==========================================
   ПОПАП "ЗАПИСЬ НА КИТАЙСКИЙ" - ПОЛНАЯ ИЗОЛЯЦИЯ
   Все классы начинаются с chinese-popup-
   Доступен только по прямой ссылке #chinese-popup
   (для рекламы в соцсетях), нигде на странице не встроен
   ========================================== */

.chinese-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

.chinese-popup-overlay.active {
    display: flex;
    animation: chinesePopupFadeIn 0.3s ease;
}

@keyframes chinesePopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chinese-popup-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #fdf6f2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: chinesePopupSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: light;
}

@keyframes chinesePopupSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chinese-popup-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.chinese-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
    transform: rotate(90deg);
}

.chinese-popup-content {
    display: flex;
    padding: 50px 50px 40px;
    gap: 50px;
}

.chinese-popup-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chinese-popup-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background: #c62828;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.chinese-popup-title {
    font-size: 34px !important;
    line-height: 1.2;
    font-weight: 800;
    color: #c62828;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chinese-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chinese-popup-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 22px;
    font-size: 20px;
    color: #333;
    line-height: 1.4;
}

.chinese-popup-list li:last-child {
    margin-bottom: 0;
}

.chinese-popup-list li::before {
    content: "汉";
    position: absolute;
    left: 0;
    top: -2px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #f9a825;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chinese-popup-right {
    width: 460px;
    flex-shrink: 0;
}

.chinese-popup-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    border: 2px solid #f6d9d0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
}

.chinese-popup-input {
    width: 100%;
    height: 75px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #f5f5f5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 0 20px;
    transition: all 0.2s;
}

.chinese-popup-input:focus {
    outline: none;
    border-color: #c62828;
    background: #fff5f3;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.chinese-popup-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.chinese-popup-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
    cursor: pointer;
    text-align: left;
    color: #333;
}

.chinese-popup-select option[value=""] {
    color: #999;
}

.chinese-popup-button {
    width: 100%;
    height: 85px;
    border: none;
    border-radius: 14px;
    background: #c62828;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    display: block;
}

.chinese-popup-button:hover {
    background: #a82121;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.chinese-popup-button:active {
    transform: translateY(0);
}

.chinese-popup-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.chinese-popup-privacy {
    text-align: center;
    color: #bbb;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 500;
}

.chinese-popup-error {
    text-align: center;
    color: #c62828;
    font-size: 15px;
    font-weight: 600;
    margin: -8px 0 15px;
}

.chinese-popup-banner {
    background: #f9a825;
    color: #4a2c00;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 30px;
}

.chinese-popup-banner-icon {
    font-size: 60px;
    flex-shrink: 0;
    animation: chinesePopupBounce 2s infinite;
}

@keyframes chinesePopupBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chinese-popup-banner-text {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
    .chinese-popup-content {
        padding: 40px 35px 30px;
        gap: 35px;
    }

    .chinese-popup-title {
        font-size: 28px !important;
        margin-bottom: 24px;
    }

    .chinese-popup-right {
        width: 400px;
    }

    .chinese-popup-list li {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .chinese-popup-input {
        height: 65px;
        font-size: 20px;
    }

    .chinese-popup-button {
        height: 70px;
        font-size: 22px;
    }

    .chinese-popup-banner {
        padding: 20px 35px;
        gap: 25px;
    }

    .chinese-popup-banner-icon {
        font-size: 50px;
    }

    .chinese-popup-banner-text {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .chinese-popup-overlay {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .chinese-popup-container {
        max-height: none;
        margin: 10px 0;
    }

    .chinese-popup-content {
        flex-direction: column;
        padding: 35px 25px 25px;
        gap: 25px;
    }

    .chinese-popup-right {
        width: 100%;
    }

    .chinese-popup-title {
        font-size: 22px !important;
        margin-bottom: 20px;
    }

    .chinese-popup-list li {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .chinese-popup-form {
        padding: 25px;
    }

    .chinese-popup-input {
        height: 60px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .chinese-popup-button {
        height: 65px;
        font-size: 20px;
    }

    .chinese-popup-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 25px;
    }

    .chinese-popup-banner-icon {
        font-size: 44px;
    }

    .chinese-popup-banner-text {
        font-size: 18px;
    }

    .chinese-popup-close {
        right: 10px;
        top: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .chinese-popup-content {
        padding: 30px 20px 20px;
        gap: 20px;
    }

    .chinese-popup-title {
        font-size: 19px !important;
    }

    .chinese-popup-list li {
        font-size: 15px;
        padding-left: 34px;
    }

    .chinese-popup-list li::before {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }

    .chinese-popup-form {
        padding: 20px;
    }

    .chinese-popup-input,
    .chinese-popup-select {
        height: 55px;
        font-size: 16px;
    }

    .chinese-popup-button {
        height: 60px;
        font-size: 18px;
    }
}
