.calc-wrapper {
    max-width: 1384px;
    margin: 40px auto;
    padding: 30px;
}

/* === Индикатор шагов === */
.calc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.calc-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.calc-step-dot span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.calc-step-dot label {
    margin-top: 6px;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s;
}

.calc-step-dot.active span {
    background: #2563eb;
    color: #fff;
}

.calc-step-dot.active label {
    color: #2563eb;
    font-weight: 600;
}

.calc-step-dot.done span {
    background: #16a34a;
    color: #fff;
}

.calc-step-dot.done label {
    color: #16a34a;
}

.calc-step-line {
    width: 50px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 4px;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.calc-step-line.active {
    background: #2563eb;
}

/* === Шаги === */
.calc-step {
    display: none;
}

.calc-step.active {
    display: block;
    animation: calcFadeIn 0.3s ease;
}

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.calc-step-title .required {
    color: #dc2626;
}

/* === Плитки === */
.calc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.calc-tile {
    cursor: pointer;
}

.calc-tile input[type="radio"] {
    display: none;
}

.calc-tile-inner {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.25s;
    background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-tile-inner:hover {
    border-color: #93b4f5;
    background: #f0f6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.calc-tile input[type="radio"]:checked + .calc-tile-inner {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-tile-icon {
    font-size: 32px;
    line-height: 1;
}

.calc-tile-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* === Подсказка в плитке === */
.calc-tile-hint {
    display: none;
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
    line-height: 1.3;
}

.calc-tile.disabled .calc-tile-hint {
    display: block;
}

/* === Заблокированная плитка === */
.calc-tile.disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.calc-tile.disabled .calc-tile-inner {
    pointer-events: none;
}

.calc-tile.disabled .calc-tile-inner:hover {
    border-color: #e0e0e0;
    background: #fff;
    transform: none;
    box-shadow: none;
}

.calc-tile.disabled input[type="radio"] {
    display: none;
}

/* === Скрытый блок === */
.calc-hidden {
    display: none !important;
}

/* === Плашка бесплатной доставки === */
.calc-free-delivery {
    margin-top: 16px;
}

.calc-free-delivery-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #166534;
    line-height: 1.5;
}

.calc-free-delivery-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.calc-free-delivery a {
    color: #166534;
    font-weight: 600;
    text-decoration: underline;
}

.calc-free-delivery a:hover {
    text-decoration: none;
}

/* === Подсказка самовывоза === */
.calc-pickup-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
}

.calc-pickup-hint-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* === Ошибки шагов === */
.calc-step-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
}

/* === Финальная форма === */
.calc-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}

.calc-summary h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #475569;
}

.calc-summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-summary-item {
    font-size: 14px;
    color: #334155;
}

.calc-summary-item strong {
    color: #64748b;
}

.calc-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.calc-contact-fields .calc-field:has(textarea),
.calc-field-full {
    grid-column: 1 / -1;
}

.calc-field label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.calc-field .required {
    color: #dc2626;
}

.calc-field input,
.calc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-field input:focus,
.calc-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-field input.error,
.calc-field textarea.error {
    border-color: #dc2626;
}

.calc-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.calc-submit-error {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}

/* === Чекбокс === */
.calc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.calc-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.calc-checkbox a {
    color: #2563eb;
    text-decoration: underline;
}

.calc-checkbox a:hover {
    text-decoration: none;
}

/* === Скрытие адреса === */
.calc-field-address.hidden,
.calc-summary-address.hidden {
    display: none;
}

/* === Кнопки === */
.calc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

.calc-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.calc-btn-back {
    background: #f1f5f9;
    color: #475569;
}

.calc-btn-back:hover {
    background: #e2e8f0;
}

.calc-btn-next {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
}

.calc-btn-next:hover {
    background: #1d4ed8;
}

.calc-btn-next:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.calc-btn-submit {
    background: #16a34a;
    color: #fff;
    margin-left: auto;
}

.calc-btn-submit:hover {
    background: #15803d;
}

.calc-btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* === Успех === */
.calc-success {
    text-align: center;
    padding: 60px 30px;
    position: relative;
}

.calc-success-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s;
}

.calc-success-close:hover {
    color: #475569;
    background: #f1f5f9;
}

.calc-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.calc-success h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.calc-success p {
    color: #64748b;
    margin-bottom: 24px;
}

.calc-success .calc-btn {
    background: #2563eb;
    color: #fff;
}

.calc-success .calc-btn:hover {
    background: #1d4ed8;
}

/* === Адаптив === */
@media (max-width: 640px) {
    .calc-wrapper {
        padding: 20px 16px;
    }

    .calc-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .calc-contact-fields {
        grid-template-columns: 1fr;
    }

    .calc-step-dot label {
        font-size: 9px;
    }

    .calc-step-line {
        width: 24px;
    }
}

.widget.c-advantages.c-advantages-template-30 .widget-item-picture {
	margin-right: 20px;
}

input[type=checkbox]:checked + span {
background-color: white !important;
}