.celtic-cross-container {
    font-family: 'Georgia', serif;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: #333;
}

.tarot-title {
    color: #4b0082;
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.tarot-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ========== ФОРМА ========== */
.tarot-form {
    background: linear-gradient(135deg, #f8f4ff, #fff);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.15);
    border: 1px solid #e0d4f5;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #4b0082;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #d4c5f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b0082;
}

/* ========== КНОПКИ ========== */
.tarot-btn {
    background: linear-gradient(135deg, #4b0082, #800080);
    color: gold;
    border: 2px solid gold;
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-family: inherit;
}

.tarot-btn:hover {
    background: linear-gradient(135deg, #800080, #4b0082);
    transform: scale(1.05);
}

.tarot-btn.secondary {
    background: transparent;
    color: #4b0082;
    border-color: #4b0082;
}

.hidden {
    display: none !important;
}

/* ========== ИНФО О КВЕРЕНТЕ ========== */
.querent-info {
    background: linear-gradient(135deg, #4b0082, #800080);
    color: gold;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.querent-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.querent-info .life-path {
    font-size: 1rem;
    margin-top: 8px;
    opacity: 0.95;
    font-style: italic;
}

.querent-info .question {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    font-size: 0.95rem;
    opacity: 0.9;
}

.tarot-controls {
    margin-bottom: 30px;
}

/* ========== ДОСКА ========== */
.tarot-board {
    position: relative;
    width: 600px;
    height: 800px;
    margin: 0 auto 40px;
    background: rgba(248, 245, 240, 0.5);
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.card-wrapper {
    position: absolute;
    width: 100px;
    height: 160px;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s;
    z-index: 1;
}

.card-wrapper:hover {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.08);
    z-index: 10;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px;
}

.card-back {
    background: linear-gradient(135deg, #2c003e, #5c0067);
    color: gold;
    border: 2px solid gold;
}

.card-back::before {
    content: "✦";
    font-size: 3.5rem;
    opacity: 0.8;
}

.card-front {
    background: #fdfbf7;
    color: #333;
    transform: rotateY(180deg);
    border: 2px solid #ddd;
}

.card-front .card-emoji {
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.card-front .card-name {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    color: #4b0082;
    line-height: 1.2;
}

.card-inner.reversed .card-front {
    transform: rotateY(180deg) rotate(180deg);
}

/* ========== ТОЛКОВАНИЕ ========== */
.tarot-reading {
    text-align: left;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.reading-header {
    color: #4b0082;
    border-bottom: 2px solid #e0d4f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.interpretation-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.interpretation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.interpretation-item h3 {
    color: #4b0082;
    margin: 0 0 10px 0;
    font-size: 1.15rem;
}

.interpretation-item p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 8px;
    color: #fff;
    vertical-align: middle;
}

.status-upright { background: #28a745; }
.status-reversed { background: #dc3545; }

@media (max-width: 650px) {
    .tarot-board {
        transform: scale(0.55);
        transform-origin: top center;
        margin-bottom: -350px;
    }
    .tarot-title { font-size: 1.8rem; }
}