/* =========================================
   СВЕТЛАЯ СТИЛИСТИКА СТРАНИЦЫ ДЕТАЛЕЙ НАПИТКА
   ========================================= */

body {
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0; /* Убрали злополучный padding */
}

.menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    z-index: 9999 !important;
}

.detail-wrapper {
    background: #ffffff;
    max-width: 1000px;

    /* БЫЛО: 140px. СТАЛО: 100px */
    margin: 100px auto 40px auto;
    padding-top: 140px;
    padding-left: auto;
    padding-right: auto;
    padding-bottom: 40px;
    padding: 40px;


    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.detail-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid #FFC107;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.detail-info {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    color: #212529;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.detail-rating {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e0a800; /* Темно-золотой цвет для хорошей читаемости на светлом */
}

.detail-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #495057;
}

/* Переключатель литража */
.ml_switcher_detail {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ml_btn {
    background: #ffffff;
    border: 2px solid #FFC107;
    color: #212529;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s ease;
}

.ml_btn.active_ml, .ml_btn:hover {
    background: #FFC107;
    color: #000000;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.price-display {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #212529;
}

.back-link {
    color: #e0a800;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    width: fit-content;
}

.back-link:hover {
    color: #b38600;
    text-decoration: underline;
}

/* =========================================
   КРУЖКИ ХАРАКТЕРИСТИК ПИВА (ОБНОВЛЕННЫЕ)
   ========================================= */
.beer-specs-wrapper {
    margin: 25px 0 35px 0;
    padding: 20px 0;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.beer-style-line {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
}

.beer-style-line strong {
    color: #212529;
    font-weight: 800;
    text-transform: uppercase;
}

.beer-specs-circles {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.spec-circle-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.spec-circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.spec-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Чтобы шкала начиналась сверху */
}

.circle-bg {
    fill: none;
    stroke: #f1f1f1;
    stroke-width: 5;
}

.circle-progress {
    fill: none;
    stroke: #FFC107;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.circle-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spec-value {
    font-size: 16px;
    font-weight: 900;
    color: #212529;
    line-height: 1;
}

.spec-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #e0a800;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.spec-circle-container:hover .circle-progress {
    stroke-width: 7;
}

.spec-circle-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* =========================================
   СЕКЦИЯ ОТЗЫВОВ И РЕЙТИНГА
   ========================================= */

.reviews-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.reviews-section h2 {
    color: #212529;
    font-size: 24px;
    margin-bottom: 25px;
}

/* Карточка отзыва */
.review-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #FFC107; /* Оставляем фирменный акцент */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 700;
    color: #212529;
}

.review-date {
    color: #adb5bd;
    font-size: 14px;
}

.review-stars {
    color: #FFC107;
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-comment {
    color: #495057;
    line-height: 1.5;
    font-size: 15px;
    margin: 0;
}

/* Форма добавления отзыва */
.review-form-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.review-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 700;
}

/* Стилизация интерактивных звезд формы */
.star-rating-form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 15px;
}

.star-rating-form input {
    display: none;
}

.star-rating-form label {
    font-size: 32px;
    color: #dee2e6; /* Серые пустые звезды */
    cursor: pointer;
    transition: 0.2s ease;
}

.star-rating-form input:checked ~ label,
.star-rating-form label:hover,
.star-rating-form label:hover ~ label {
    color: #FFC107; /* Золотые при наведении и выборе */
}

.review-form textarea {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #212529;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: 0.3s;
}

.review-form textarea:focus {
    border-color: #FFC107;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.btn-submit {
    background: #FFC107;
    color: #000000;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Информационная плашка для гостей */
.auth-alert {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 35px;
    color: #b38600;
    font-weight: 500;
}

.auth-alert a {
    color: #212529;
    font-weight: 700;
    text-decoration: underline;
}