@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@100..800&display=swap');

/* Variables */
: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);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Playpen Sans", cursive;
    background: #f3f3f3;
    color: var(--text-black);
    min-height: 100vh;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 16px 24px;
}

.header {
    margin: 0 auto;
    padding: 10px 10px;
}

.header-img {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

/* Заголовок страницы */
.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;
}

/* Основной контейнер с двумя колонками */
.payment-main-container {
    display: flex;
    gap: 30px;
    background: #ffe7ea;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(221, 191, 195, 1);
    margin-top: 20px;
}

/* Левая колонка с информацией */
.payment-info-column {
    flex: 1;
    padding: 20px;
}

.info-title {
    font-size: 28px;
    color: #982030;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-description {
    font-size: 16px;
    color: black;
    margin-bottom: 25px;
    line-height: 1.5;
}

.price-block {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #982030;
}

.price-label {
    font-size: 18px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: #982030;
}

.payment-form {
    margin: 20px 0;
}

.btn-payment {
    width: 100%;
    padding: 18px 30px;
    background: #982030;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgb(255, 231, 234);
    border: 2px solid #982030;
}

.btn-payment:hover {
    background: #ddbfc3;
    transform: translateY(-2px);
}

.payment-features {
    margin-top: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
}

.payment-features p {
    margin: 10px 0;
    color: black;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Правая колонка с телефоном */
.payment-preview-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}







/* Текст открытки */
.preview-text {
    color: black;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0);
    border-radius: 12px;
    word-break: break-word;
    max-height: 120px;
    overflow-y: auto;
}

/* Кнопки в превью */
.preview-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 10px;
}

.preview-btn-yes, .preview-btn-no {
    flex: 1;
    max-width: 150px;
    padding: 15px 0;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 600;
    


}

.preview-btn-yes {
    background: #c02a2b;
    color: white;
}

.preview-btn-no {
    background: rgba(0,0,0,0);
    color: black;
    border: 2px solid black;
    border-radius: 30px;
}


/* Футер */
.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: 4px 0;
    color: #e2576a;
}




/* Адаптивность */
@media (max-width: 768px) {
    .payment-main-container {
        flex-direction: column;
    }

    

    

    .preview-text {
        font-size: 18px;
    }
}

/* ========== СТИЛИ ДЛЯ УСПЕШНОЙ ОПЛАТЫ ========== */

.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;
}

.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 .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;
}




/* ========== ВЕРХНЕЕ МЕНЮ ========== */
.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: 50px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
}

/* БУРГЕР-КНОПКА - скрыта на десктопе */
.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;
}

/* Оверлей для затемнения */
.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: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: black;
    font-family: 'Be Vietnam Pro', sans-serif;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 540;
}

.nav-links a:hover {
    color: #94162C;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #94162C;
}

.spacer {
    width: 150px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .success-card {
        padding: 30px 20px;
    }

    .link-container {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }

  

    .navbar {
        padding: 8px 20px;
        width: 100%;
    }
    
    
    
    .nav-links {
        position: static;
        transform: none;
        display: flex !important;
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .spacer {
        display: none;
    }
    .footer-links {
   
    gap: 10px;
    
}

}





































/* Превью открытки */
.hero-preview {

    width: 340px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3), 0 0 0 8px #333, 0 0 0 10px #555;
    flex-shrink: 0;
}

/* Картинка */
.preview-image {
    
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px 0;
    max-height: 280px;
}

.preview-image img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Заголовок */
.preview-title {
    color: #d32f2f;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
     margin: 0 0 10px 0;
    padding: 5px;
    word-break: break-word;
    background: transparent;
}

/* Нижняя часть с кнопками - прижимаем к низу */
.preview-bottom {
    
    text-align: center;
    padding-top: 20px;
}

/* Кнопки */
.preview-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 0;
}









/* Плавное появление шрифтов */
.preview-title,
.preview-text {
    transition: font-family 0.1s ease, color 0.1s ease;
    will-change: font-family, color;
}

/* Для всех шрифтов, которые могут загружаться */
.font-card {
    transition: all 0.2s ease;
}

/* Предзагрузка шрифтов - скрываем "скачок" текста */
.font-card {
    font-display: swap;
}











































@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    .hero-form {
        width: 90%;
    }

    .hero-preview {
        width: 300px;
        min-height: 450px;
        margin-top: 20px;
        
    }

    .preview-title {
        font-size: 24px;
    }

    .steps-navigation {
        gap: 5px;
        flex-direction: column;
        align-items: center;
    }

    .step-item {
        width: 100%;
        max-width: 250px;
    }

    /* Адаптация для кнопок выбора стиля */
    .button-styles-section {
        margin: 10px 0px;
    }
    
    .button-styles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .style-btn {
        min-width: auto;
        padding: 5px 15px;
        font-size: 10px;  /* ← исправлено: было 5px */
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }

















}












@media (max-width: 576px) {
    .form-navigation {
        flex-direction: column;
        align-items: center;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .btn-back, .btn-cta {
        width: 100%;
        max-width: 190px;
        transform: none !important;
        
    }

    .btn-back:hover, .btn-cta:hover {
        transform: none !important;
    }

    .button-styles-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .style-btn {
        padding: 8px 12px;
        font-size: 10px;
        white-space: normal;
        word-break: break-word;
    }

  
}




/* ========== ЦЕНТРИРОВАНИЕ ПРЕВЬЮ НА МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .payment-preview-column {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-preview {
        margin: 0 auto;
        width: 300px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-preview {
        width: 280px;
        min-height: 480px;
    }
}

@media (max-width: 375px) {
    .hero-preview {
        width: 260px;
        min-height: 450px;
    }
}