* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    position: relative;
    width: 100%;
    margin: 0;
    background: #ffffff;
}

/* Кнопка закрытия */
.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    z-index: 1000;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #000000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Левая боковая панель */
.sidebar {
    padding: 60px 30px 60px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo-container {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.logo {
    width: 126px;
    height: 52px;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.step-number {
    font-size: 80px;
    font-weight: 900;
    color: #000000;
    line-height: 0.9;
    margin-bottom: 50px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    overflow: visible;
}

.step-item:not(.active) {
    opacity: 1;
}

.step-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

.step-item.active {
    background: rgb(250, 201, 201);
    opacity: 1;
    border-radius: 25px;
}

.step-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333333;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-item.active .step-bullet {
    width: 8px;
    height: 8px;
    background: rgb(250, 201, 201);
    box-shadow: none;
}

.step-text {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-block;
}

.step-item.active .step-text {
    font-weight: 700;
    color: rgb(255, 255, 255);
}

/* Основной контент */
.main-content {
    padding: 80px 100px;
    background: #ffffff;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.step-content {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: none;
    margin: 0;
}

.step-content.active {
    display: block !important;
}

.step-content:not(.active) {
    display: none !important;
}

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

.step-title {
    font-size: 56px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 50px;
    text-transform: lowercase;
    letter-spacing: -2px;
    line-height: 1.1;
}

#step2 .step-title {
    margin-bottom: 50px;
}

/* Табы дизайна */
.design-tabs {
    display: inline-flex;
    gap: 0;
    margin-bottom: 50px;
    background: #f5f5f5;
    padding: 6px;
    border-radius: 12px;
    position: relative;
}

.design-tab {
    padding: 14px 28px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: lowercase;
    border-radius: 8px;
    z-index: 1;
}

.design-tab:hover {
    color: #000000;
}

.design-tab.active {
    color: #000000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.new-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    font-size: 9px;
    font-weight: 800;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #000000;
    padding: 2px 6px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Макет первого шага */
.step1-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
}

.step1-certificate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.step1-certificate-wrapper .dynamic-certificate-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: auto;
    max-width: 860px; /* 800px + gap для кнопок */
    margin-bottom: 40px;
    position: relative;
}

.step1-certificate-wrapper .certificate-card-preview {
    width: 800px !important;
    max-width: 800px !important;
    min-width: 800px;
    flex-shrink: 0;
}

.step1-certificate-wrapper .carousel-btn {
    flex-shrink: 0;
    z-index: 10;
}

/* Карусель дизайнов */
.design-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.design-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    min-height: 450px;
    padding: 40px 20px;
    overflow: visible;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
    width: 100%;
    max-width: none;
    position: relative;
    perspective: 1200px;
    overflow: visible;
    padding: 20px;
    margin: -20px;
}

.design-card {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 10;
    opacity: 0.4;
    transform: scale(0.85) translateZ(-100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    cursor: pointer;
    position: relative;
    padding: 20px;
    margin: -20px;
}

.design-card.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.design-card .design-3d-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    perspective: 1000px;
}

.design-preview {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.design-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.design-1 {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
}

.design-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.design-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.design-4 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.design-5 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.design-6 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.design-7 {
    background: linear-gradient(135deg, #ff8a80 0%, #ea6100 100%);
}

.design-8 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gift-box-preview,
.elegant-preview,
.modern-preview,
.minimal-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gift-box-preview::before {
    content: '🎁';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.elegant-preview::before {
    content: '✨';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 0.5s;
}

.modern-preview::before {
    content: '💎';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 1s;
}

.minimal-preview::before {
    content: '⭐';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Новые дизайны в стиле лазерной эпиляции */
.design-4-preview::before {
    content: '🌸';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 0.3s;
}

.design-5-preview::before {
    content: '💫';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 0.7s;
}

.design-6-preview::before {
    content: '🔮';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 1.2s;
}

.design-7-preview::before {
    content: '🌺';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 1.7s;
}

.design-8-preview::before {
    content: '⚡';
    font-size: 140px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite 2s;
}

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

/* Индикаторы карусели */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e5e5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dot:hover {
    background: #cccccc;
    transform: scale(1.2);
}

.dot.active {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(250, 201, 201, 0.4);
}

/* Палитра цветов */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: #fafafa;
    border-radius: 20px;
}

/* Палитра цветов только на шаге 1 */
#step1 .color-palette {
    display: flex;
}

#step2 .color-palette,
#step3 .color-palette,
#step4 .color-palette,
#step5 .color-palette {
    display: none !important;
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.color-swatch.active {
    border-color: #000000;
    outline: 4px solid #ffffff;
    outline-offset: 4px;
    transform: scale(1.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Выбор номинала - новый макет */
#step2 {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.amount-selection-layout-v2 {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 40px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
}

/* Сетка номиналов справа */
.amount-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 80px;
    min-width: 500px;
    gap: 20px;
    padding-top: 0;
}

.amount-grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    width: 100%;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 480px;
}

.amount-grid-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    padding: 14px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-grid-item:hover {
    border-color: rgb(250, 201, 201);
    background: rgba(250, 201, 201, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 201, 201, 0.15);
}

.amount-grid-item.active {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(250, 201, 201, 0.3);
}

.custom-amount-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    padding: 14px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
}

.custom-amount-btn:hover {
    border-color: rgb(250, 201, 201);
    background: rgba(250, 201, 201, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 201, 201, 0.15);
}

.custom-amount-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Секция с карточкой */
.amount-preview-section {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px;
    flex-shrink: 0;
}

/* Динамический сертификат */
.dynamic-certificate-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    perspective: 1000px;
}

.certificate-card-preview {
    background: linear-gradient(135deg, #60a5fa, #3b82f6); /* Базовый градиент по умолчанию (синий) */
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    min-height: 500px;
    width: 800px;
    max-width: 800px;
    transition: background 0.3s ease, box-shadow 0.1s ease-out;
    cursor: pointer;
    transform-style: preserve-3d;
}

/* Декоративные элементы для лазерной эпиляции - лучи света */
.certificate-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

/* Декоративные элементы - узоры */
.certificate-card-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.02) 15px,
            rgba(255, 255, 255, 0.02) 30px
        );
    pointer-events: none;
    z-index: 1;
    animation: shimmer 20s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
    100% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg) translateX(30px);
    }
}

.certificate-3d-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Декоративные элементы фона сертификата */
.certificate-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Декоративные круги */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    animation: float-circle 15s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 15%;
    animation-delay: 3s;
}

.decoration-circle-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: -80px;
    animation-delay: 6s;
}

/* Декоративные линии */
.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 2px;
    animation: line-move 20s linear infinite;
}

.decoration-line-1 {
    width: 400px;
    top: 25%;
    left: -100px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.decoration-line-2 {
    width: 350px;
    bottom: 30%;
    right: -80px;
    transform: rotate(-45deg);
    animation-delay: 5s;
}

/* Декоративные точки */
.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.3;
    animation: dots-move 30s linear infinite;
}

/* Декоративные блестки */
.decoration-sparkle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: sparkle 4s ease-in-out infinite;
}

.decoration-sparkle-1 {
    top: 20%;
    left: 70%;
    animation-delay: 0s;
}

.decoration-sparkle-2 {
    top: 60%;
    left: 25%;
    animation-delay: 1.5s;
}

.decoration-sparkle-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

/* Анимации для декоративных элементов */
@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes line-move {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(600%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes dots-move {
    0% {
        background-position: 0 0, 25px 25px;
    }
    100% {
        background-position: 50px 50px, 75px 75px;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

/* Дополнительные декоративные элементы */

/* Декоративный круг 4 */
.decoration-circle-4 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 5%;
    animation-delay: 9s;
}

/* Декоративная линия 3 */
.decoration-line-3 {
    width: 300px;
    top: 70%;
    left: 40%;
    transform: rotate(90deg);
    animation-delay: 10s;
}

/* Дополнительные блестки */
.decoration-sparkle-4 {
    top: 45%;
    right: 10%;
    animation-delay: 2s;
    font-size: 20px;
}

.decoration-sparkle-5 {
    top: 75%;
    left: 60%;
    animation-delay: 4.5s;
    font-size: 18px;
}

/* Декоративные волны */
.decoration-wave {
    position: absolute;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent
    );
    border-radius: 50%;
    animation: wave-move 12s ease-in-out infinite;
    filter: blur(10px);
}

.decoration-wave-1 {
    top: -50px;
    left: -50%;
    animation-delay: 0s;
}

.decoration-wave-2 {
    bottom: -50px;
    right: -50%;
    animation-delay: 6s;
}

/* Геометрические формы */
.decoration-geometric {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: geometric-rotate 20s linear infinite;
}

.decoration-geometric-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 10%;
    border-radius: 20% 40%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.decoration-geometric-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    border-radius: 50%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 7s;
}

.decoration-geometric-3 {
    width: 100px;
    height: 100px;
    top: 55%;
    right: 25%;
    border-radius: 30%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation-delay: 14s;
}

/* Декоративные частицы */
.decoration-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 60px 60px, 100px 100px;
    background-position: 0 0, 40px 40px, 20px 20px;
    opacity: 0.4;
    animation: particles-float 25s ease-in-out infinite;
}

/* Эффекты свечения */
.decoration-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: glow-pulse 8s ease-in-out infinite;
}

.decoration-glow-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.decoration-glow-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation-delay: 4s;
}

/* Кристаллы */
.decoration-crystal {
    position: absolute;
    font-size: 32px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: crystal-shine 5s ease-in-out infinite;
}

.decoration-crystal-1 {
    top: 30%;
    left: 12%;
    animation-delay: 0s;
}

.decoration-crystal-2 {
    bottom: 35%;
    right: 12%;
    animation-delay: 2.5s;
}

/* Новые анимации */
@keyframes wave-move {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0.6;
    }
}

@keyframes geometric-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes particles-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px);
        opacity: 0.6;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes crystal-shine {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg);
    }
}

/* Дополнительные декоративные элементы */
.decoration-wave {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: wave-move 10s ease-in-out infinite;
    border-radius: 50%;
}

.decoration-wave-1 {
    top: 15%;
    left: -50%;
    animation-delay: 0s;
}

.decoration-wave-2 {
    bottom: 20%;
    right: -50%;
    animation-delay: 3s;
}

.decoration-geometric {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: geometric-rotate 25s linear infinite;
}

.decoration-geometric-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
    border-radius: 20% 80% 20% 80%;
    animation-delay: 0s;
}

.decoration-geometric-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 5%;
    border-radius: 80% 20% 80% 20%;
    animation-delay: 5s;
}

.decoration-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 2%);
    animation: particles-float 20s ease-in-out infinite;
}

.decoration-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: glow-pulse 8s ease-in-out infinite;
}

.decoration-glow-1 {
    top: 30%;
    right: 5%;
    animation-delay: 0s;
}

.decoration-glow-2 {
    bottom: 25%;
    left: 8%;
    animation-delay: 4s;
}

/* Дополнительные анимации */
@keyframes wave-move {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes geometric-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes particles-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(20px, -20px);
        opacity: 0.8;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.certificate-card-preview .watermark {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 10px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.certificate-content-preview {
    width: 70%;
    margin-left: 30%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    position: relative;
    z-index: 2;
}

.certificate-card-preview .certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-card-preview .header-left {
    display: flex;
    flex-direction: column;
}

.certificate-card-preview .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.certificate-card-preview .logo-underline {
    width: 60px;
    height: 2px;
    background: #ffffff;
}

.certificate-card-preview .cert-number-header {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.certificate-card-preview .certificate-title-section {
    margin-bottom: 30px;
}

.certificate-card-preview .cert-title-small {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
}

.certificate-card-preview .cert-title-large {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.certificate-card-preview .recipient-section {
    margin-bottom: 30px;
}

.certificate-card-preview .recipient-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.certificate-card-preview .recipient-name {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.certificate-card-preview .gift-message {
    margin-bottom: 30px;
}

.certificate-card-preview .gift-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.certificate-card-preview .certificate-design-icon {
    font-size: 100px;
    text-align: center;
    margin: 15px 0;
    display: block;
    line-height: 1;
    opacity: 1;
    min-height: 100px;
}

.certificate-card-preview .gift-amount {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    margin-top: 5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    text-align: center;
}

.certificate-card-preview .certificate-footer {
    margin-top: auto;
}

.certificate-card-preview .validity-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.certificate-card-preview .terms-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Карточка слева */
.amount-card-preview-v2 {
    flex-shrink: 0;
}

.amount-card-preview-v2 .preview-card {
    max-width: 800px;
    width: 800px;
    aspect-ratio: 16 / 10;
}

/* Выбранное значение справа внизу - находится внутри amount-grid-wrapper */
.selected-amount-display-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-top: auto;
    margin-bottom: 220px;
    width: 100%;
    max-width: 480px;
}

.selected-amount-display-v2 .selected-amount-value {
    font-size: 64px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1;
}

.selected-amount-display-v2 .amount-hint {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #666666;
    font-weight: 500;
}

/* Выбор номинала - старый макет (скрыт) */
.amount-selection-layout {
    display: none;
}

.amount-card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px;
}

.recipient-card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px;
}

.recipient-card-preview .dynamic-certificate-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recipient-card-preview .certificate-card-preview {
    width: 800px;
    max-width: 800px;
}

.preview-card {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 16 / 10;
    position: relative;
    cursor: pointer;
    padding: 20px;
    margin: -20px;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    perspective: 1000px;
}

.card-design-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 50%, rgb(240, 160, 160) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.amount-card-preview-v2 .card-design-preview {
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.card-design-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.card-design-icon {
    position: absolute;
    font-size: 180px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.amount-card-preview-v2 .card-design-icon {
    font-size: 200px;
}

.card-text-preview {
    font-size: 88px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    animation: floatText 3s ease-in-out infinite;
}

.amount-card-preview-v2 .card-text-preview {
    font-size: 120px;
    letter-spacing: 12px;
}

@keyframes floatText {
    0%, 100% {
        transform: translateY(0) perspective(1000px) rotateX(0deg) translateZ(20px);
    }
    50% {
        transform: translateY(-8px) perspective(1000px) rotateX(2deg) translateZ(20px);
    }
}

.card-design-preview:hover {
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
}

/* Радиальное меню */
.amount-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* Радиальное меню для шага 2 */
.amount-selection-layout-v2 .radial-menu {
    width: 500px;
    height: 500px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-top: 0;
    margin-right: 0;
    overflow: visible;
}

.radial-menu-container {
    width: 500px;
    height: 500px;
    position: relative;
}

.radial-item {
    position: absolute;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    left: 500px;
    top: 0px;
    transform-origin: 0px 0px;
}

.radial-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.15) !important;
    font-weight: 700;
    z-index: 10;
}

.radial-item.active {
    color: #000000;
    font-weight: 800;
    font-size: 18px;
}

.radial-item.active::before {
    content: '•';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

/* Полукруг, открывающийся влево: от верхнего левого (120°) к нижнему правому (30°) */
.radial-item:nth-child(1) { transform: rotate(120deg) translateX(200px) rotate(-120deg); }
.radial-item:nth-child(2) { transform: rotate(115deg) translateX(200px) rotate(-115deg); }
.radial-item:nth-child(3) { transform: rotate(110deg) translateX(200px) rotate(-110deg); }
.radial-item:nth-child(4) { transform: rotate(105deg) translateX(200px) rotate(-105deg); }
.radial-item:nth-child(5) { transform: rotate(100deg) translateX(200px) rotate(-100deg); }
.radial-item:nth-child(6) { transform: rotate(95deg) translateX(200px) rotate(-95deg); }
.radial-item:nth-child(7) { transform: rotate(90deg) translateX(200px) rotate(-90deg); }
.radial-item:nth-child(8) { transform: rotate(85deg) translateX(200px) rotate(-85deg); }
.radial-item:nth-child(9) { transform: rotate(80deg) translateX(200px) rotate(-80deg); }
.radial-item:nth-child(10) { transform: rotate(75deg) translateX(200px) rotate(-75deg); }
.radial-item:nth-child(11) { transform: rotate(70deg) translateX(200px) rotate(-70deg); }
.radial-item:nth-child(12) { transform: rotate(65deg) translateX(200px) rotate(-65deg); }
.radial-item:nth-child(13) { transform: rotate(60deg) translateX(200px) rotate(-60deg); }
.radial-item:nth-child(14) { transform: rotate(55deg) translateX(200px) rotate(-55deg); }
.radial-item:nth-child(15) { transform: rotate(50deg) translateX(200px) rotate(-50deg); }
.radial-item:nth-child(16) { transform: rotate(45deg) translateX(200px) rotate(-45deg); }
.radial-item:nth-child(17) { transform: rotate(40deg) translateX(200px) rotate(-40deg); }
.radial-item:nth-child(18) { transform: rotate(35deg) translateX(200px) rotate(-35deg); }
.radial-item:nth-child(19) { transform: rotate(30deg) translateX(200px) rotate(-30deg); }

/* Выбранное значение */
.selected-amount-display {
    text-align: center;
}

.selected-amount-value {
    font-size: 72px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1;
}

.amount-hint {
    display: inline-block;
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 15px;
    color: #666666;
    font-weight: 500;
}

/* Форма получателя */
.recipient-selection-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.recipient-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
}

.recipient-type-selector {
    display: flex;
    gap: 16px;
}

.recipient-type-btn {
    flex: 1;
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipient-type-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
}

.recipient-type-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.name-input-wrapper {
    display: flex;
    gap: 16px;
}

.name-input {
    flex: 1;
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    background: #ffffff;
    font-family: Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.name-input::placeholder {
    color: #999999;
}

.name-input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
}

.phone-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-input {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    letter-spacing: 2px;
}

.phone-input:focus {
    border-color: rgb(250, 201, 201);
    box-shadow: 0 0 0 4px rgba(250, 201, 201, 0.1);
}

.phone-input::placeholder {
    color: #999999;
    font-weight: 400;
}

.phone-hint {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.greeting-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}

.greeting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.greeting-toggle:hover {
    opacity: 0.7;
}

.greeting-label {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-transform: lowercase;
}

.greeting-plus {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    color: #000000;
    transition: all 0.3s ease;
}

.greeting-toggle.active .greeting-plus {
    transform: rotate(45deg);
    background: #000000;
    color: #ffffff;
}

.greeting-input-wrapper {
    margin-top: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting-textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.greeting-textarea:focus {
    border-color: rgb(250, 201, 201);
    box-shadow: 0 0 0 4px rgba(250, 201, 201, 0.1);
}

.greeting-textarea::placeholder {
    color: #999999;
}

/* Шаг 4: Время отправки */
.delivery-time-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.delivery-card-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 20px;
}

.delivery-card-preview .dynamic-certificate-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.delivery-card-preview .certificate-card-preview {
    width: 800px;
    max-width: 800px;
}

.delivery-card-design {
    background: linear-gradient(135deg, #e8d5ff 0%, #ffd5e8 50%, #d5e8ff 100%);
    position: relative;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.delivery-card-design::before {
    content: '🌸';
    font-size: 200px;
    opacity: 0.6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.delivery-card-greeting {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: rotate(-2deg);
}

.delivery-time-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
}

.delivery-time-title {
    font-size: 42px;
    font-weight: 900;
    color: #000000;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: -1px;
}

.delivery-time-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.delivery-time-btn {
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.delivery-time-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
}

.delivery-time-btn.active {
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
}

.delivery-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-text {
    font-size: 16px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

.delivery-date {
    font-size: 16px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

/* Поля выбора даты и времени */
.delivery-date-time-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    animation: slideDown 0.3s ease-out;
}

.delivery-field-wrapper {
    position: relative;
    width: 100%;
}

.delivery-field-separator {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 16px;
}

.delivery-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    margin: -8px 0;
    padding: 16px 8px;
}

.delivery-field:hover {
    background-color: rgba(250, 201, 201, 0.1);
}

.delivery-field.active,
.delivery-field:focus-within {
    background-color: rgba(250, 201, 201, 0.2);
    box-shadow: 0 0 0 2px rgba(250, 201, 201, 0.3);
}

.delivery-field-value {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.delivery-field-timezone {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin-left: auto;
    margin-right: 20px;
}

.delivery-field-arrow {
    color: #000000;
    flex-shrink: 0;
}

.delivery-date-input,
.delivery-time-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Выбор срока действия */
.validity-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
}

.validity-card {
    padding: 40px 30px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.validity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.validity-card:hover {
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.validity-card:hover::before {
    transform: scaleX(1);
}

.validity-card.active {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(250, 201, 201, 0.3);
}

.validity-card.active::before {
    transform: scaleX(1);
}

.validity-card.active .validity-value {
    color: #ffffff;
}

.validity-value {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    transition: color 0.3s;
}

.custom-days-input {
    max-width: 350px;
    margin-top: 30px;
}

.custom-days-input input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.custom-days-input input:focus {
    border-color: rgb(250, 201, 201);
    box-shadow: 0 0 0 4px rgba(250, 201, 201, 0.1);
}

/* Подтверждение (шаг 5) */
.confirmation-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
}

.confirmation-certificate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    perspective: 1200px;
}

.confirmation-certificate-wrapper .dynamic-certificate-wrapper {
    transform: rotateY(-8deg) rotateX(3deg);
    transition: transform 0.3s ease;
}

.confirmation-certificate-wrapper:hover .dynamic-certificate-wrapper {
    transform: rotateY(-6deg) rotateX(2deg) scale(1.02);
}

.confirmation-certificate-wrapper .certificate-card-preview {
    width: 800px;
    max-width: 800px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.confirmation-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    width: 100%;
}

.certificate-status {
    padding: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 10px;
}

.status-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.status-value {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.offline-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.delivery-option-buttons {
    display: flex;
    gap: 12px;
}

.delivery-option-btn {
    flex: 1;
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.delivery-option-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
}

.delivery-option-btn.active {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    border-color: transparent;
    color: #ffffff;
}

.delivery-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.address-input,
.comments-input,
.name-input-field,
.phone-input-field {
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.address-input:focus,
.comments-input:focus,
.name-input-field:focus,
.phone-input-field:focus {
    border-color: rgb(250, 201, 201);
    box-shadow: 0 0 0 4px rgba(250, 201, 201, 0.1);
}

.submit-request-btn {
    padding: 20px 32px;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(250, 201, 201, 0.4);
}

.submit-request-btn:active {
    transform: translateY(0);
}

/* Кнопка онлайн-записи */
/* Оплата (старые стили - оставляем на случай) */
.payment-summary {
    max-width: 600px;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    border: 1px solid #e5e5e5;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 17px;
    font-weight: 500;
    color: #666666;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item span:last-child {
    color: #000000;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 25px 0 0;
    margin-top: 25px;
    border-top: 2px solid #000000;
    font-size: 24px;
    font-weight: 800;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
}

.payment-method {
    padding: 24px 28px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method:hover {
    border-color: #000000;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.payment-method.active {
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(250, 201, 201, 0.3);
}

/* Кнопка "ДАЛЕЕ" */
.next-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    color: #ffffff;
    border: none;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(250, 201, 201, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 50px rgba(250, 201, 201, 0.5);
}

.next-btn:active {
    transform: scale(1.05);
}

/* Модальное окно закрытия */
.close-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-modal.show {
    opacity: 1;
}

.close-modal-content {
    background: #2a2a2a;
    border: 1px solid rgba(250, 201, 201, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.close-modal.show .close-modal-content {
    transform: scale(1);
}

.close-modal-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
}

.close-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgb(250, 201, 201) 0%, rgb(245, 180, 180) 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(250, 201, 201, 0.4);
}

.close-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(250, 201, 201, 0.5);
}

.close-modal-btn:active {
    transform: translateY(0);
}

.close-modal-btn .gift-icon {
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-content {
        padding: 60px 60px;
    }
}

@media (max-width: 968px) {
    .app-wrapper {
        grid-template-columns: 1fr;
        padding-top: 0; /* Мобильное меню будет управлять отступом */
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 50px 40px 120px !important;
        width: 100%;
        max-width: 100%;
    }

    .step-title {
        font-size: 42px;
        text-align: center;
    }

    .amount-selection-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .radial-menu {
        width: 400px;
        height: 400px;
        max-width: 90vw;
    }

    .selected-amount-value {
        font-size: 56px;
    }

    .recipient-selection-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .next-btn {
        width: 100px;
        height: 100px;
        bottom: 30px;
        right: 30px;
        font-size: 15px;
    }
    
    /* Карточка сертификата */
    .step1-certificate-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .certificate-card-preview {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 40px 24px;
    }

    .step-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .design-carousel {
        min-height: 350px;
        gap: 15px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .validity-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .radial-menu {
        width: 300px;
        height: 300px;
    }

    .selected-amount-value {
        font-size: 42px;
    }

    .card-text-preview {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .next-btn {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Уменьшаем сертификат на мобильной версии и делаем его полностью видимым */
    .certificate-card-preview,
    .step1-certificate-wrapper .certificate-card-preview,
    .recipient-card-preview .certificate-card-preview,
    .delivery-card-preview .certificate-card-preview,
    .confirmation-certificate-wrapper .certificate-card-preview {
        width: 320px;
        max-width: calc(100% - 32px);
        min-width: 0;
        margin: 0 auto;
        transform: none;
    }
}

