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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

.welcome {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

#username {
    color: #667eea;
    font-weight: 600;
}

.progress-section {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: white;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.progress-count {
    font-size: 16px;
    font-weight: 700;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #58cc02 0%, #7ed321 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 10px rgba(88, 204, 2, 0.5);
}

.puzzles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
}

/* Соединительные линии между последовательными пазлами */
/* Горизонтальные линии вправо (для блоков 1, 2, 3, 5, 6, 7, и т.д.) */
.puzzle:nth-child(1)::after,
.puzzle:nth-child(2)::after,
.puzzle:nth-child(3)::after,
.puzzle:nth-child(5)::after,
.puzzle:nth-child(6)::after,
.puzzle:nth-child(7)::after,
.puzzle:nth-child(9)::after,
.puzzle:nth-child(10)::after,
.puzzle:nth-child(11)::after,
.puzzle:nth-child(13)::after,
.puzzle:nth-child(14)::after,
.puzzle:nth-child(15)::after,
.puzzle:nth-child(17)::after,
.puzzle:nth-child(18)::after,
.puzzle:nth-child(19)::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 4px;
    background: #c0c0c0;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Стрелочки вправо для блоков 4, 8, 12, 16 */
.puzzle:nth-child(4)::after,
.puzzle:nth-child(8)::after,
.puzzle:nth-child(12)::after,
.puzzle:nth-child(16)::after {
    content: '→';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #d0d0d0;
    font-weight: bold;
    z-index: 1;
}

/* Зеленые стрелочки для завершенных уроков */
.puzzle.completed:nth-child(4)::after,
.puzzle.completed:nth-child(8)::after,
.puzzle.completed:nth-child(12)::after,
.puzzle.completed:nth-child(16)::after {
    color: #58cc02;
}

/* Зеленые линии для завершенных уроков */
.puzzle.completed:nth-child(1)::after,
.puzzle.completed:nth-child(2)::after,
.puzzle.completed:nth-child(3)::after,
.puzzle.completed:nth-child(5)::after,
.puzzle.completed:nth-child(6)::after,
.puzzle.completed:nth-child(7)::after,
.puzzle.completed:nth-child(9)::after,
.puzzle.completed:nth-child(10)::after,
.puzzle.completed:nth-child(11)::after,
.puzzle.completed:nth-child(13)::after,
.puzzle.completed:nth-child(14)::after,
.puzzle.completed:nth-child(15)::after,
.puzzle.completed:nth-child(17)::after,
.puzzle.completed:nth-child(18)::after,
.puzzle.completed:nth-child(19)::after {
    background: #58cc02;
}

/* Желтые линии для открытых уроков */
.puzzle:not(.locked):not(.completed):nth-child(1)::after,
.puzzle:not(.locked):not(.completed):nth-child(2)::after,
.puzzle:not(.locked):not(.completed):nth-child(3)::after,
.puzzle:not(.locked):not(.completed):nth-child(5)::after,
.puzzle:not(.locked):not(.completed):nth-child(6)::after,
.puzzle:not(.locked):not(.completed):nth-child(7)::after,
.puzzle:not(.locked):not(.completed):nth-child(9)::after,
.puzzle:not(.locked):not(.completed):nth-child(10)::after,
.puzzle:not(.locked):not(.completed):nth-child(11)::after,
.puzzle:not(.locked):not(.completed):nth-child(13)::after,
.puzzle:not(.locked):not(.completed):nth-child(14)::after,
.puzzle:not(.locked):not(.completed):nth-child(15)::after,
.puzzle:not(.locked):not(.completed):nth-child(17)::after,
.puzzle:not(.locked):not(.completed):nth-child(18)::after,
.puzzle:not(.locked):not(.completed):nth-child(19)::after {
    background: #ffdd00;
}

.puzzle {
    aspect-ratio: 1;
    background: #ffdd00;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: 3px solid #e5c500;
    box-shadow: 
        0 4px 0 #ccb000,
        0 6px 8px rgba(0, 0, 0, 0.15);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-color: #ffdd00;
    background-size: 100% 100%;
}

.puzzle:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #ccb000,
        0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Варианты для разных позиций */
.puzzle:nth-child(4n+1):not(:nth-child(1)):not(:nth-child(17)) {
    /* Левый край */
    clip-path: none;
}

.puzzle:nth-child(4n):not(:nth-child(4)):not(:nth-child(20)) {
    /* Правый край */
    clip-path: none;
}

.puzzle:nth-child(-n+4):not(:nth-child(1)):not(:nth-child(4)) {
    /* Верхний ряд */
    clip-path: none;
}

.puzzle:nth-child(n+17):not(:nth-child(17)):not(:nth-child(20)) {
    /* Нижний ряд */
    clip-path: none;
}

/* Углы */
.puzzle:nth-child(1) {
    clip-path: none;
}

.puzzle:nth-child(4) {
    clip-path: none;
}

.puzzle:nth-child(17) {
    clip-path: none;
}

.puzzle:nth-child(20) {
    clip-path: none;
}

.puzzle:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 6px 0 #ccb000,
        0 10px 16px rgba(0, 0, 0, 0.2);
}

.puzzle.completed {
    background: #58cc02;
    border-color: #46a302;
    box-shadow: 
        0 4px 0 #46a302,
        0 6px 8px rgba(0, 0, 0, 0.15);
    animation: unlock 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-color: #58cc02;
}

.puzzle.locked {
    background: #e5e5e5;
    border-color: #c0c0c0;
    box-shadow: 
        0 4px 0 #b0b0b0,
        0 6px 8px rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    opacity: 0.7;
}

.puzzle.locked:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 0 #b0b0b0,
        0 8px 12px rgba(0, 0, 0, 0.15);
}

.puzzle.locked:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #b0b0b0,
        0 4px 6px rgba(0, 0, 0, 0.1);
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.puzzle.completed:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 6px 0 #46a302,
        0 10px 16px rgba(88, 204, 2, 0.3);
}

.puzzle.completed:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #46a302,
        0 4px 6px rgba(0, 0, 0, 0.15);
}

@keyframes unlock {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.puzzle-number {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Для пройденных уроков - номер в правом верхнем углу */
.puzzle.completed .puzzle-number {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.puzzle.locked .puzzle-number {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27px;
    height: 27px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    z-index: 15;
}

.puzzle:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #CC0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 9px solid #FFFFFF;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}



.completion-effect {
    display: none;
    text-align: center;
    margin: 40px 0;
    animation: fadeIn 1s ease;
}

.completion-effect.active {
    display: block;
}

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

.gipoteza-text {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 24px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.brain-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.brain-svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s ease-in-out infinite;
}

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

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.secondary-btn {
    padding: 14px 24px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 0 #5568d3, 0 4px 8px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.secondary-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #4556c2, 0 6px 12px rgba(102, 126, 234, 0.4);
}

.secondary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #5568d3, 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.primary-btn {
    width: 100%;
    padding: 18px;
    background: #ffdd00;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #e5c500, 0 6px 16px rgba(255, 221, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #e5c500, 0 8px 24px rgba(255, 221, 0, 0.5);
}

.primary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e5c500, 0 4px 12px rgba(255, 221, 0, 0.4);
}

.primary-btn .btn-icon {
    width: 24px;
    height: 24px;
}

/* Модальное окно оплаты */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.payment-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.payment-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

.payment-price {
    font-size: 36px;
    font-weight: 900;
    color: #667eea;
    text-align: center;
    margin-bottom: 8px;
}

.payment-description {
    font-size: 14px;
    color: #666;
    text-align: left;
    margin-bottom: 24px;
}

.payment-description p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-btn {
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.payment-method-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.payment-method-btn:active {
    transform: translateY(0);
}

.payment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.payment-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.payment-method-btn[data-method="monobank"] .payment-icon {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.payment-method-btn[data-method="revolut"] .payment-icon {
    background: linear-gradient(135deg, #0075eb 0%, #005bb5 100%);
}

.payment-method-btn[data-method="paypal"] .payment-icon {
    background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%);
}

.payment-method-btn[data-method="crypto"] .payment-icon {
    background: linear-gradient(135deg, #f7931a 0%, #f2a900 100%);
}

.email-section {
    margin-bottom: 24px;
}

.email-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.email-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.email-input::placeholder {
    color: #999;
}

.email-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.payment-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: #ffdd00;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 0 #e5c500, 0 6px 12px rgba(255, 221, 0, 0.3);
}

.continue-btn:hover {
    background: #e5c500;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #ccb000, 0 8px 16px rgba(255, 221, 0, 0.4);
}

.continue-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e5c500, 0 4px 8px rgba(255, 221, 0, 0.3);
}

.back-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: #5568d3;
}

.payment-email-display {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
}

.payment-email-display span {
    color: #667eea;
    font-weight: 600;
}

.locked-btn {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
}

.locked-btn:hover {
    background: #667eea !important;
    transform: none !important;
    box-shadow: 0 3px 0 #5568d3, 0 4px 8px rgba(102, 126, 234, 0.3) !important;
}

.lock-icon-small {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: 0.7;
}

/* Модальное окно для видео */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    display: block;
}

/* Модальное окно фидбека */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
    display: flex;
}

.feedback-modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feedback-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.feedback-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.feedback-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.feedback-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.feedback-question {
    margin-bottom: 24px;
}

.feedback-question label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.rating-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding: 0 4px;
}

.feedback-comment {
    margin-bottom: 24px;
}

.feedback-comment label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.feedback-comment textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
}

.feedback-submit-btn {
    width: 100%;
    padding: 16px;
    background: #ffdd00;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #e5c500, 0 6px 12px rgba(255, 221, 0, 0.3);
}

.feedback-submit-btn:hover {
    background: #e5c500;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #ccb000, 0 8px 16px rgba(255, 221, 0, 0.4);
}

.feedback-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e5c500, 0 4px 8px rgba(255, 221, 0, 0.3);
}

.feedback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Модальное окно для сообщений */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.message-modal.active {
    display: flex;
}

.message-modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.message-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.message-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.message-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.message-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.message-form {
    margin-bottom: 20px;
}

.message-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.message-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.message-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
}

.message-submit-btn {
    width: 100%;
    padding: 16px;
    background: #ffdd00;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #e5c500, 0 6px 12px rgba(255, 221, 0, 0.3);
    margin-bottom: 12px;
}

.message-submit-btn:hover {
    background: #e5c500;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #ccb000, 0 8px 16px rgba(255, 221, 0, 0.4);
}

.message-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e5c500, 0 4px 8px rgba(255, 221, 0, 0.3);
}

.message-note {
    font-size: 12px;
    color: #999;
    text-align: center;
}
