/* css/calculator.css */
.calculator {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    margin-top: 60px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.calculator h2 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 20px;
}

.calculator p {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    margin-bottom: 30px;
}

#sizeForm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
}

label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffd700;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.form-btn {
    width: 100%;
    padding: 12px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.form-btn:active {
    transform: scale(0.98);
}

#results {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

#results h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 10px;
}

#recommendedSize {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    color: #ccc;
}

.hidden {
    display: none;
}

.measurement-guide {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.measurement-guide h3 {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    margin-bottom: 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.guide-image img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.guide-text {
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    text-align: left;
}

.guide-text ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.guide-text li {
    margin-bottom: 10px;
}

.guide-text p {
    font-size: 16px;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculator {
        padding: 40px 10px;
    }

    .calculator h2 {
        font-size: 36px;
    }

    .calculator p {
        font-size: 16px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-image img {
        max-width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .calculator h2 {
        font-size: 28px;
    }

    #sizeForm, .measurement-guide {
        padding: 20px;
    }
}