.photobook-calc-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}

/* Прогресс-бар */
.calc-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}
.progress-step {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-bottom: 3px solid #ddd;
    color: #999;
    font-weight: bold;
}
.progress-step.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
}
.progress-step.completed {
    border-bottom-color: #4CAF50;
    color: #4CAF50;
}

/* Сводка (кликабельная) */
.calc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
}
.summary-item {
    cursor: pointer;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.2s;
}
.summary-item:hover {
    background: #e0e0e0;
}

/* Живая цена */
.live-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Шаги */
.calc-step {
    display: none;
}
.calc-step.active {
    display: block;
}
.calc-step h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Шаг 1: размер */
.size-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.size-option {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}
.size-option.selected {
    border-color: #0073aa;
    background: #e7f1f8;
}
.size-option .size-preview {
    margin: 10px auto 0;
    background: #ccc;
    border: 1px solid #999;
}

/* Шаг 2: обложка */
.cover-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.cover-option {
    cursor: pointer;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    transition: all 0.2s;
}
.cover-option.selected {
    border-color: #0073aa;
    background: #e7f1f8;
}
.cover-option img {
    max-width: 150px;
    max-height: 150px;
    display: block;
    margin: 0 auto 10px;
}

/* Шаг 3: форзац */
.flyleaf-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flyleaf-option {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s;
}
.flyleaf-option.selected {
    border-color: #0073aa;
    background: #e7f1f8;
}
.flyleaf-option .flyleaf-price {
    float: right;
}

/* Шаг 4: современная визуализация разворотов */
.spreads-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.book-visual {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.book-cover,
.book-back,
.book-spine {
    height: 180px;
    border-radius: 3px;
}
.book-cover {
    width: 140px;
    background-color: #8bc34a; /* fallback */
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.book-spine {
    width: 20px;
    background: #795548;
    transition: width 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.book-back {
    width: 140px;
    background: #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.spreads-control {
    width: 100%;
    text-align: center;
}
.spreads-control input[type="range"] {
    width: 80%;
    max-width: 300px;
    margin-bottom: 5px;
}
.spreads-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

/* Итог */
.summary-detailed p {
    margin: 5px 0;
}
.total-price {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}