* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.subtitle {
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Карточка */
.card {
    background: #0A0A0A;
    border-radius: 0;
    padding: 80px 60px;
    border: 1px solid #1A1A1A;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    min-height: 500px;
    position: relative;
}

/* Начальное сообщение */
.initial-message {
    text-align: center;
    padding: 100px 0;
}

.initial-message p {
    color: #808080;
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 100px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 2px solid #1A1A1A;
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: #808080;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Ошибка */
.error {
    text-align: center;
    padding: 60px 0;
}

.error p {
    color: #B87333;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Контент цитаты */
.quote-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quote-main {
    text-align: center;
    position: relative;
    padding: 40px 0;
}

.quote-mark-open,
.quote-mark-close {
    display: none;
}

.quote-text {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0 40px;
    font-family: 'Playfair Display', serif;
}

.original-quote {
    background: transparent;
    border-radius: 0;
    padding: 20px 0;
    border: none;
    border-top: 1px solid #1A1A1A;
}

.original-quote p {
    color: #666666;
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.05em;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 30px 0 20px 0;
    border-bottom: 3px solid #D4AF37;
    max-width: 400px;
}

.author-name {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.author-info .icon {
    display: none;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    border: none;
    border-bottom: 1px solid #1A1A1A;
}

.icon {
    color: #D4AF37;
    flex-shrink: 0;
    margin-top: 2px;
    width: 24px;
    height: 24px;
}

.info-label {
    color: #D4AF37;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-text {
    color: #CCCCCC;
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Кнопка */
.button-container {
    text-align: center;
    margin-top: 60px;
}

.fetch-button {
    background: #D4AF37;
    color: #000000;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 18px 50px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fetch-button:hover {
    background: #F4D03F;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.fetch-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(0);
}

.button-icon {
    transition: transform 0.3s ease;
    stroke: #000000;
}

.button-icon.spinning {
    animation: spin 1s linear infinite;
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 50px;
}

.footer p {
    color: #404040;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Утилиты */
.hidden {
    display: none !important;
}

/* Декоративный элемент как в Figma */
.card::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(45deg, #D4AF37 25%, transparent 25%),
        linear-gradient(-45deg, #D4AF37 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #D4AF37 75%),
        linear-gradient(-45deg, transparent 75%, #D4AF37 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 50%;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .card {
        padding: 50px 30px;
    }

    .quote-text {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    .card::after {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .author-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .card {
        padding: 40px 20px;
    }
}
