/* ============================================ */
/* ========== 1. ПЕРЕМЕННЫЕ (ROOT) ========== */
/* ============================================ */
:root {
    --bg-dark: #455A44;
    --card-light: #E8F5E9;
    --accent-lime: #9CCC65;
    --btn-green: #8BC34A;
    --text-black: #212121;
    --text-gray: #616161;
    --footer-link: #CFD8DC;
    --footer-text: #B0BEC5;
    --card-border: #2E7D32;
    --shadow-green: rgba(46, 125, 50, 0.25);
}

/* ============================================ */
/* ========== 2. ГЛОБАЛЬНЫЕ СБРОСЫ ========== */
/* ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================ */
/* ========== 3. ОСНОВНЫЕ СТИЛИ BODY ========== */
/* ============================================ */
body {
    margin: 0;
    /*font-family: "Playpen Sans", cursive;*
    background: #f3f3f3;
    color: var(--text-black);
    min-height: 100vh;
}

/* ============================================ */
/* ========== 4. КОНТЕЙНЕР СТРАНИЦЫ ========== */
/* ============================================ */
.page {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 16px 24px;
}

/* ============================================ */
/* ========== 5. ЗАГОЛОВОК СТРАНИЦЫ ========== */
/* ============================================ */
.page-title {
    text-align: center;
    color: black;
    margin-bottom: 30px;
    font-size: 32px;
    position: relative;
    margin-top: 15px;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #982030;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ============================================ */
/* ========== 6. ШАПКА (ЛОГОТИП) ========== */
/* ============================================ */
.header-img {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

/* ============================================ */
/* ========== 7. ОСНОВНОЙ КОНТЕЙНЕР ОПЛАТЫ ========== */
/* ============================================ */
.payment-main-container {
    display: flex;
    background: #ffe7ea;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(221, 191, 195, 1);
    margin-top: 35px;
   
    
    
}

/* ============================================ */
/* ========== 8. КОЛОНКА ПРЕДПРОСМОТРА ========== */
/* ============================================ */
.payment-preview-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

/* ============================================ */
/* ========== 9. КОЛОНКА ОПЛАТЫ (СЛЕВА) ========== */
/* ============================================ */
.payment-info-column {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 28px;
    color: #982030;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

/* ============================================ */
/* ========== 10. БЛОК ЦЕНЫ ========== */
/* ============================================ */
.price-block {
    text-align: center;
    margin: 0 0 20px 0;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid rgba(152, 32, 48, 0.15);
}

.price-label {
    font-size: 15px;
    color: #000000;
    display: block;
    margin-bottom: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: #982030;
}

/* ============================================ */
/* ========== 11. КНОПКА ОПЛАТЫ ========== */
/* ============================================ */
.btn-payment {
    width: 100%;
    padding: 0px 0px;
    max-height: 50px;
    background: #982030;
    color: white;
    border: none;
    border-radius: 48px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-payment:hover {
    background: #7a1a26;
    transform: translateY(-1px);
}

/* ============================================ */
/* ========== 12. БЛОК EMAIL ========== */
/* ============================================ */
.email-block {
    background: white;
    height: auto;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.email-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s;
}

.email-input:focus {
    border-color: #982030;
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 32, 48, 0.08);
}

.email-input::placeholder {
    color: #a9a9a9;
}

.email-hint {
    font-size: 13px;
    color: #000000;
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.4;
}

.email-hint strong {
    color: #982030;
    font-weight: 500;
}

.email-note {
    font-size: 13px;
    background-color: #feebed;
    margin: 15px 0px 25px 0px;
    padding: 13px;
    border-radius: 12px;
    color: #3e3e3e;
    border-top: 1px solid #f0f0f0;
}

/* ============================================ */
/* ========== 13. ОСНОВНОЙ БЛОК ПРЕВЬЮ (HERO) ========== */
/* ============================================ */
.hero-preview {
    width: 330px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1), 0 0 0 8px #333, 0 0 0 10px #555;
    margin: 0 auto;
}

/* ============================================ */
/* ========== 14. НИЖНЯЯ ЧАСТЬ ПРЕВЬЮ ========== */
/* ============================================ */
.preview-bottom {
    margin-bottom: 20px;
    text-align: center;
}

.preview-text {
    color: black;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 12px;
    word-break: break-word;
    max-height: 120px;
    overflow-y: auto;
}

/* ============================================ */
/* ========== 15. ТЕКСТ ОТКРЫТКИ ========== */
/* ============================================ */
.postcard-text {
    color: black;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    margin: 5px 0 5px 0;
    padding: 0px 8px;
    max-width: 300px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    animation: slideFromBottom 0.6s ease 0.2s both;
}

/* ============================================ */
/* ========== 16. КОНТЕЙНЕР КНОПОК ========== */
/* ============================================ */
.hero-preview .buttons-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 5px 0 5px 0;
    animation: slideFromBottom 0.6s ease 0.3s both;
}

/* ============================================ */
/* ========== 17. БАЗОВЫЕ СТИЛИ КНОПОК ========== */
/* ============================================ */
.hero-preview .preview-btn-yes,
.hero-preview .preview-btn-no {
    flex: 1;
    max-width: 120px;
    min-width: 120px;
    padding: 12px 0px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
}

.preview-btn-yes:hover,
.preview-btn-no:hover {
    transform: scale(1.05);
}

/* ============================================ */
/* ========== 18. АДАПТАЦИЯ ДЕСКТОП ========== */
/* ============================================ */
@media (min-width: 769px) {
    .payment-main-container {
        flex-direction: row;
        max-width: 580px;     
        margin-left: auto;    
        margin-right: auto;
    }

    .payment-preview-column {
        order: 2; /* hero-preview справа */
    }

    .payment-info-column {
        order: 1; /* форма слева */
    }
}

/* ============================================ */
/* ========== 19. АДАПТАЦИЯ МОБИЛЬНЫЕ ========== */
/* ============================================ */
@media (max-width: 900px) {
    .payment-main-container {
        flex-direction: column;
    }

    .payment-preview-column {
        order: 1;
    }

    .payment-info-column {
        order: 2;
    }

    .hero-bag {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ============================================ */
/* ========== 20. БЛОК УСПЕШНОЙ ОПЛАТЫ ========== */
/* ============================================ */
.success-card {
    background: white;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(75, 103, 65, 0.2);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border: 2px solid #4b6741;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #982030;
    color: white;
    font-size: 60px;
    line-height: 100px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 10px 20px rgba(221, 191, 195, 1);
}

.success-card h2 {
    color: black;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-card p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ============================================ */
/* ========== 21. КОНТЕЙНЕР ССЫЛКИ ========== */
/* ============================================ */





@media (max-width: 900px) {
    .link-container {
        flex-direction: column;   
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .link-container input {
        font-size: 14px;
        padding: 14px 12px;
        width: 100%;
        text-align: center;       
        border-radius: 8px;
        background: #f9f9f9;
    }

    .btn-copy {
        width: 100%;              
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 8px;
        text-align: center;
        justify-content: center;
    }
}
.link-container {
    display: flex;
    gap: 10px;
    margin: 30px 0 15px;
    background: white;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #ffe7ea;
}

.link-container input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: black;
   /* font-family: monospace;*/
    outline: none;
}

.btn-copy {
    padding: 15px 25px;
    background: #982030;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #ffe7ea;
    transform: scale(1.05);
}

.link-hint {
    color: #999;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

.success-card .preview-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.success-card .btn-preview,
.success-card .btn-home {
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.success-card .btn-preview {
    background: #982030;
    color: white;
}

.success-card .btn-home {
    background: #f3f3f3;
    color: black;
    border: 1px solid #ddd;
}

.success-card .btn-preview:hover {
    background: #ffe7ea;
    transform: translateX(3px);
}

.success-card .btn-home:hover {
    background: #ffe7ea;
}

/* ============================================ */
/* ========== 22. ФУТЕР ========== */
/* ============================================ */
.footer {
    margin-top: auto;
    padding: 40px 16px;
    text-align: center;
    background-color: #982030;
    border-radius: 20px 20px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    color: var(--footer-text);
    font-size: 13px;
    line-height: 1.5;
}

.footer-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
/* ============================================ */
/* ========== 23. АНИМАЦИИ ========== */
/* ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* ========== 24. БЛОК БЕЗОПАСНОСТИ ОПЛАТЫ ========== */
/* ============================================ */
.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 10px 16px;
    margin-top: 16px;
}

.security-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.security-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-security p {
    font-size: 14px;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

/* ============================================ */
/* ========== 25. ГАРАНТИЯ ОПЛАТЫ ========== */
/* ============================================ */
.payment-guarantee {
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #982030;
    margin-bottom: 20px;
}

/* ============================================ */
/* ========== 26. СТИЛИ ДЛЯ ОТКРЫТКИ ВНУТРИ HERO-PREVIEW ========== */
/* ============================================ */
.hero-preview.postcard-container {
    overflow: hidden;
    position: relative;
}

/* ============================================ */
/* ========== 27. СТИЛИ ДЛЯ РЕАКЦИЙ ========== */
/* ============================================ */
.hero-preview .reaction-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.hero-preview .main-content-wrapper,
.hero-preview .reaction-wrapper {
    height: auto;
    width: 300px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    padding: 25px 10px 12px 10px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    animation: containerFadeIn 0.8s ease forwards;
    z-index: 2;
}

.hero-preview .reaction-text {
    font-weight: 600;
    font-size: 17px;
    padding: 7px 0px;
    text-align: center;
    max-width: 260px;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 0px;
    line-height: 1.5;
    background: transparent;
}

/* ============================================ */
/* ========== 28. ОБЕРТКА HERO-BAG ========== */
/* ============================================ */
.hero-bag {
    background: white;
    border-radius: 40px;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
    width: 330px;
    min-height: 600px;
    z-index: 1;
    position: relative;
}

/* ============================================ */
/* ========== 29. КОНТЕЙНЕР ИЗОБРАЖЕНИЙ В HERO ========== */
/* ============================================ */
.hero-preview .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    max-height: 350px;
    animation: slideFromTop 0.6s ease 0.1s both;
}

.reaction-content .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    max-height: 350px;
    animation: slideFromTop 0.6s ease 0.1s both;
}

.hero-preview .content-image {
    max-width: 95%;
    max-height: 250px;
    min-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ============================================ */
/* ========== 30. ЗАГОЛОВОК И ТЕКСТ В HERO ========== */
/* ============================================ */
.hero-preview .postcard-title {
    font-size: 22px;
    text-align: center;
    word-break: break-word;
    font-weight: bold;
    margin: 0px 0 5px 0;
    padding: 5px 8px 5px 8px;
    max-width: 300px;
    animation: slideFromTop 0.6s ease forwards;
}

.hero-preview .postcard-text {
    font-size: 18px;
    text-align: center;
    word-break: break-word;
    font-weight: 600;
    line-height: 1.4;
    margin: 5px 0 5px 0;
    padding: 0px 8px 8px 8px;
    max-width: 300px;
    width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
    animation: slideFromBottom 0.6s ease 0.2s both;
}


/* ============================================ */
/* ========== 36. АДАПТАЦИЯ МЕНЮ ДЛЯ ТЕЛЕФОНОВ ========== */
/* ============================================ */
@media (max-width: 900px) {
   
   

    .footer-links {
        gap: 10px;
    }

    .burger-menu {
        display: flex;
    }
}

/* ============================================ */
/* ========== 37. АНИМАЦИИ ДЛЯ ОТКРЫТКИ ========== */
/* ============================================ */

/* Анимация появления контейнера */
@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимация появления сверху */
@keyframes slideFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация появления снизу */
@keyframes slideFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация исчезновения вверх */
@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/* Анимация исчезновения вниз */
@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* Классы для использования анимаций */
.slide-out-up {
    animation: slideOutUp 0.4s ease forwards;
}

.slide-out-down {
    animation: slideOutDown 0.4s ease forwards;
}

.slide-from-top {
    animation: slideFromTop 0.5s ease forwards;
}

.slide-from-bottom {
    animation: slideFromBottom 0.5s ease forwards;
}

.hero-preview {
    container-type: inline-size;
}

/* ============================================ */
/* ========== 38. КНОПКА ПЕРЕЗАГРУЗКИ ========== */
/* ============================================ */
.reload-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reload-btn:hover {
    transform: rotate(90deg);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reload-btn svg {
    color: #982030;
    width: 20px;
    height: 20px;
}

/* ============================================ */
/* ========== 39. АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
/* ============================================ */
@media (max-width: 900px) {
    .reload-btn {
        width: 35px;
        height: 35px;
        top: 15px;
        left: 15px;
    }

    .reload-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .reload-btn {
        width: 30px;
        height: 30px;
        top: 10px;
        left: 10px;
    }

    .reload-btn svg {
        width: 16px;
        height: 16px;
    }
}
























/* ===== МАЛЕНЬКАЯ КРАСНАЯ КНОПКА "НАЗАД" ===== */
.btn-back-payment {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #982030;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 17px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 110px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(152, 32, 48, 0.25);
}

.btn-back-payment:hover {
    background: #7a1a26;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(152, 32, 48, 0.35);
}

.btn-back-payment svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-back-payment:hover svg {
    transform: translateX(-3px);
}


/* Показываем на мобильных */
@media (min-width: 761px) {
    .btn-back-payment {
        display: inline-flex;
    }
}

/* ===== КНОПКА "НАЗАД" ДЛЯ МОБИЛЬНЫХ ===== */
.btn-back-mobile {
    display: none; /* по умолчанию скрыта на десктопе */
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #982030;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 17px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 110px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(152, 32, 48, 0.25);
}

.btn-back-mobile:hover {
    background: #7a1a26;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(152, 32, 48, 0.35);
}

.btn-back-mobile svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;

}

/* Показываем на мобильных */
@media (max-width: 760px) {
    .btn-back-mobile {
        display: inline-flex;
    }
}







@media (max-width: 900px) {
    .payment-main-container {
        flex-direction: column !important;
    }
    .payment-preview-column {
        order: 1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .payment-info-column {
        order: 2 !important;
        width: 100%;
    }
}













/* ============================================ */
/* ===== ПРОМОКОД ===== */
/* ============================================ */
.promo-block {
    margin-top: 10px;
    padding: 10px 20px 5px 20px;
    background: #fff8f9;
    border-radius: 20px;
    border: 1px solid rgba(152, 32, 48, 0.08);
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.promo-block:focus-within {
    border-color: rgba(152, 32, 48, 0.25);
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.promo-icon {
    font-size: 18px;
}

.promo-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e8e0da;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    color: #1a1a1a;
}

.promo-input::placeholder {
    color: #b5aba4;
    font-weight: 400;
}

.promo-input:focus {
    border-color: #982030;
    box-shadow: 0 0 0 3px rgba(152, 32, 48, 0.08);
}

.promo-apply-btn {
    padding: 12px 28px;
    background: #982030;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.promo-apply-btn:hover {
    background: #7a1a26;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 32, 48, 0.25);
}

.promo-apply-btn:active {
    transform: translateY(0);
}

.promo-message {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    min-height: 22px;
    font-weight: 500;
    padding: 0 4px;
}

.promo-message.success {
    color: #2b7a4b;
}

.promo-message.error {
    color: #b35a4a;
}








/* ============================================ */
/* ===== АДАПТАЦИЯ ПРОМОКОДА ДЛЯ ТЕЛЕФОНОВ ===== */
/* ============================================ */

@media (max-width: 600px) {
    .promo-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .promo-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .promo-apply-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 14px;
        justify-content: center;
        text-align: center;
    }

    .promo-block {
        
        margin-top: 14px;
    }
}




























/* ============================================================
   НАВИГАЦИЯ (ВЕРХНЕЕ МЕНЮ)
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fefcfb;
    padding: 5px 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 99;
    flex-wrap: wrap;
}

.logo img {
    height: 45px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
    margin: 5px;
}

/* Оверлей для затемнения */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Центральные ссылки навигации */
.nav-links {
    display: flex;
    gap: 5px;
    position: absolute;   
    left: 34%;
    transform: translateX(-50%);
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 13px;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}

.nav-links a:hover {
    color: #94162C;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #94162C;
}

.spacer {
    width: 150px;
}

/* Кнопка для открытия категорий на мобилках — скрыта на десктопе */
.sidebar-toggle {
    display: none;
}

/* ============================================================
   ПРАВАЯ ЧАСТЬ МЕНЮ
   ============================================================ */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ (ВЫПАДАЮЩИЙ)
   ============================================================ */
.language-switcher {
    position: relative;
    display: inline-block;
}

/* Кнопка текущего языка */
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f0ef;
    border: none;
    padding: 6px 12px 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-current:hover {
    background: #ece5e3;
}

.lang-current .lang-flag {
    font-size: 16px;
}

.lang-current .lang-code {
    font-weight: 600;
    color: #333;
}

.lang-current .lang-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.lang-current.active .lang-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список языков */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s ease;
    border: 1px solid #f0ecea;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Скроллбар для выпадающего списка */
.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}
.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Пункты выпадающего списка */
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-option:hover {
    background: #f8f2f0;
    color: #982030;
}

.lang-option.active {
    background: #f8f2f0;
    color: #982030;
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-code-small {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    background: #f5f0ef;
    padding: 2px 8px;
    border-radius: 12px;
}

.lang-option.active .lang-code-small {
    background: #f0e5e2;
    color: #982030;
}

/* Анимация при открытии */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.lang-dropdown.open {
    animation: slideDown 0.2s ease forwards;
}

/* ============================================================
   АВТОРИЗАЦИЯ
   ============================================================ */
.auth-buttons {
    display: flex;
    align-items: center;
}

.btn-login {
    padding: 8px 22px;
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: #982030;
    color: #982030;
    transform: translateY(-2px);
}

/* Меню пользователя (авторизован) */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: 0px;
}

.user-btn.active .user-arrow {
    transform: rotate(180deg);
}

.user-avatar {
    font-size: 18px;
}

.user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

/* Выпадающее меню пользователя */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #f0ecea;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: #f8f2f0;
    color: #982030;
}

.user-dropdown hr {
    margin: 6px 16px;
    border: none;
    border-top: 1px solid #f0ecea;
}

.user-dropdown .logout-link {
    color: #dc3545;
}

.user-dropdown .logout-link:hover {
    background: #fff5f5;
    color: #c62828;
}

/* Кнопка "Создать открытку" */
.btn-create-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #982030;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(152, 32, 48, 0.25);
}

.btn-create-card .btn-icon {
    font-size: 16px;
}

.btn-create-card:hover {
    background: #6b1522;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(152, 32, 48, 0.35);
}

.btn-create-card:active {
    transform: translateY(0px);
}

/* ============================================================
   БУРГЕР-МЕНЮ — СКРЫТО НА ДЕСКТОПЕ
   ============================================================ */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #982030;
    border-radius: 3px;
    transition: all 0.3s ease;
}





/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ
   ============================================================ */
@media (max-width: 1000px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 99;
        background: #fefcfb;
        padding: 8px 20px;
        width: 100%;
    }

    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: static;
        transform: none;
        display: flex !important;
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0px;
        font-family: 'Playfair Display', serif;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 20px;
        font-family: 'Playfair Display', serif;
    }

    .spacer {
        display: none;
    }
}

@media (max-width: 900px) {
    .spacer {
        display: none;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        background: #FAFAF9;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
}

@media (max-width: 595px) {
    .nav-links a {
        font-size: 16px;
        font-family: 'Playfair Display', serif;
    }

    .navbar-right {   
        gap: 5px;  
    }

    .btn-create-card {
        gap: 8px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .btn-login {
        padding: 8px 15px;
        font-size: 12px;
    }

    .lang-current {
        gap: 6px;
        padding: 6px 12px 6px 10px;
        font-size: 12px; 
    }

    .logo img {
        height: 35px;
        width: auto;
        border-radius: 5px;
        object-fit: contain;
        margin: 5px;
    }
}

@media (max-width: 478px) {
    .navbar {
        padding: 10px;
    }

    .navbar-right {   
        gap: 5px;  
    }

    .btn-create-card {
        gap: 8px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .user-btn {
        gap: 3px;
        padding: 8px 5px 8px 5px;
        font-size: 10px;
        max-width: 85px;
    }

    .btn-login {
        padding: 7px 10px;
        font-size: 10px;
    }

    .lang-current {
        gap: 3px;
        padding: 6px 10px 6px 8px;
        font-size: 10px; 
    }

    .logo img {
        height: 28px;
        width: auto;
        border-radius: 5px;
        object-fit: contain;
        margin: 5px;
    }
}

@media (max-width: 377px) {
    .navbar {
        padding: 6px 8px;
    }

    .logo img {
        height: 20px;
    }

    .nav-links {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .navbar-right {
        gap: 4px;
    }

    .btn-create-card {
        padding: 5px 8px;
        font-size: 8px;
        gap: 1px;
    }

    .user-btn {
        gap: 2px;
        padding: 3px 3px 3px 3px;
        font-size: 8px;
        max-width: 70px;
    }

    .btn-login {
        padding: 5px 8px;
        font-size: 8px;
    }

    .lang-current {
        padding: 4px 6px;
        font-size: 8px;
        gap: 2px;
    }

    .lang-current .lang-arrow {
        font-size: 7px;
    }
}


.pipi {
    height: 35px;
}




@media (max-width: 478px) {

.pipi {
    height: 27px;
}
}

@media (max-width: 377px) {

.pipi {
    height: 22px;
}
}



/* ============================================================
   ВЫБОР ВАЛЮТЫ
   ============================================================ */
.currency-block {
    margin: 16px 0 20px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e8e0d4;
}

.currency-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.currency-icon {
    font-size: 18px;
}

.currency-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.currency-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e8e0d4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-option:hover {
    border-color: #982030;
    background: #fdf5f5;
}

.currency-option input[type="radio"] {
    display: none;
}

.currency-option.active,
.currency-option:has(input:checked) {
    border-color: #982030;
    background: #fdf5f5;
    box-shadow: 0 0 0 3px rgba(152, 32, 48, 0.15);
}

.currency-flag {
    font-size: 20px;
}

.currency-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.currency-symbol {
    font-size: 14px;
    color: #666;
    margin-left: auto;
}

/* Адаптивность */
@media (max-width: 480px) {
    .currency-options {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .currency-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .currency-flag {
        font-size: 16px;
    }
}

.currency-symbol-display {
    font-size: 18px;
    font-weight: 700;
    margin-left: 2px;
}







.country-selector-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(152, 32, 48, 0.08);
    text-align: center; /* ← ДОБАВИТЬ */
}

.country-selector-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: 'Be Vietnam Pro', sans-serif;
    text-align: center; /* ← ДОБАВИТЬ */
}

.country-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center; /* ← ДОБАВИТЬ (ВМЕСТО flex-start) */
}

.country-option {
    padding: 6px 16px;
    border-radius: 30px;
    border: 2px solid #e5e5e5;
    background: white;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.country-option:hover {
    border-color: #982030;
    background: rgba(152, 32, 48, 0.04);
}

.country-option.active {
    border-color: #982030;
    background: #982030;
    color: white;
}

        /* ================================================================
           БЛОК ОПЛАТЫ
           ================================================================ */
        .payment-method {
            display: none !important;
            margin-top: 12px;
        }

        .payment-method.active {
            display: flex !important;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .btn-payment {
            width: 100%;
            padding: 14px 20px;
            background: #982030;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            font-family: 'Be Vietnam Pro', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-payment:hover {
            background: #7a1a26;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(152, 32, 48, 0.25);
        }

}










/* ============================================================
   АДАПТАЦИЯ ПЕРЕКЛЮЧАТЕЛЯ ЯЗЫКОВ ДЛЯ ТЕЛЕФОНОВ
   ============================================================ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .lang-current {
        padding: 4px 10px;
        font-size: 12px;
    }

    .lang-current .lang-code {
        font-size: 11px;
    }

    .lang-current .lang-arrow {
        font-size: 8px;
    }

    .lang-dropdown {
        min-width: 160px;
    }

    .lang-option {
        padding: 8px 14px;
        font-size: 13px;
    }

    .lang-option .lang-flag {
        font-size: 16px;
    }
}


@media (max-width: 900px) {
    .language-switcher {
        position: relative;
    }

    .lang-current {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 14px;
        gap: 4px;
    }

    .lang-current .lang-code {
        font-size: 10px;
    }

    .lang-current .lang-arrow {
        font-size: 7px;
    }

    .lang-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        left: auto;
        min-width: 150px;
        max-height: 300px;
        border-radius: 12px;
        padding: 6px 0;
        transform: translateY(-10px) scale(0.95);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid #f0ecea;
        background: white;
        /* Убираем всё лишнее */
        width: auto;
        bottom: auto;
    }

    .lang-dropdown::after {
        display: none; /* Убираем iOS-полоску */
    }

    .lang-dropdown.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    /* Убираем затемнение фона */
    .lang-dropdown.open::before {
        display: none;
    }

    .lang-option {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
        border-bottom: none;
        justify-content: flex-start;
    }

    .lang-option .lang-flag {
        font-size: 16px;
    }

    .lang-option .lang-name {
        font-size: 13px;
    }

    .lang-option .lang-code-small {
        font-size: 10px;
        padding: 1px 8px;
    }
}

/* Маленькие телефоны (480px и меньше) */
@media (max-width: 480px) {
    .lang-current {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 12px;
        gap: 3px;
    }

    .lang-current .lang-code {
        font-size: 9px;
    }

    .lang-current .lang-arrow {
        font-size: 6px;
    }

    .lang-dropdown {
        min-width: 130px;
        max-height: 250px;
        padding: 4px 0;
        border-radius: 10px;
        right: -10px; /* Смещаем, чтобы не вылезало за экран */
    }

    .lang-option {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .lang-option .lang-flag {
        font-size: 14px;
    }

    .lang-option .lang-name {
        font-size: 12px;
    }

    .lang-option .lang-code-small {
        font-size: 9px;
        padding: 1px 6px;
    }
}

/* Очень маленькие телефоны (377px и меньше) */
@media (max-width: 377px) {
    .lang-current {
        padding: 2px 5px;
        font-size: 8px;
        border-radius: 10px;
        gap: 2px;
    }

    .lang-current .lang-code {
        font-size: 8px;
    }

    .lang-current .lang-arrow {
        font-size: 5px;
    }

    .lang-dropdown {
        min-width: 110px;
        max-height: 200px;
        padding: 4px 0;
        border-radius: 8px;
        right: -5px;
    }

    .lang-option {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .lang-option .lang-flag {
        font-size: 12px;
    }

    .lang-option .lang-name {
        font-size: 11px;
    }

    .lang-option .lang-code-small {
        font-size: 8px;
        padding: 0px 5px;
    }
}





.payment-methodone {
  margin-left: 0px !important; 
  width: 100%; 
  border-radius: 10px;
  overflow: visible;
  display: flex;            
  justify-content: center;   
  align-items: center;      

}


@media (max-width: 900px) {

.payment-methodone {
  margin-left: 10px !important; 
 
  

}
}

@media (max-width: 450px) {

.payment-methodone {
  margin-left: 0px !important; 
  
  

}
}









.btn-copy {
    transition: all 0.3s ease;
}

.btn-copy.copied {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.btn-copy:active {
    transform: scale(0.92);
}










