.delivery-page {
    min-height: 100vh;
    padding: 40px 20px 80px;
    background: linear-gradient(180deg, #fef9e7 0%, #ffffff 35%, #f5f5f7 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.delivery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #3a3a3c;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    text-align: center;
}

.delivery-terms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.term-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border: 1px solid #f0ebe3;
    transition: transform 0.2s;
}

.term-card:hover {
    transform: translateY(-4px);
}

.term-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.term-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.term-card p {
    font-size: 14px;
    color: #6a6a6c;
    line-height: 1.6;
    margin-bottom: 6px;
}

.term-card p:last-child {
    margin-bottom: 0;
}

.term-card strong {
    color: #c84a1e;
    font-weight: 700;
}

/* Без боковых padding — карта будет во всю ширину */
.calculator-block {
    background: white;
    border-radius: 24px;
    padding: 40px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border: 1px solid #f0ebe3;
    margin-bottom: 32px;
}

/* Внутренние элементы с отступами */
.calculator-block h2,
.calc-form,
.address-display,
.result-block {
    padding-left: 40px;
    padding-right: 40px;
}

.calculator-block h2 {
    font-size: 22px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 24px;
}

.calc-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #6a6a6c;
}

.input-group input {
    padding: 14px 18px;
    border: 2px solid #e8e0d0;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #6fb34a;
    box-shadow: 0 0 0 4px rgba(111, 179, 74, 0.12);
}

.btn-calc {
    display: block;
    width: 100%;
    padding: 16px;
    background: #6fb34a;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(111, 179, 74, 0.3);
    margin-top: 4px;
}

.btn-calc:hover {
    background: #5a9a3a;
    transform: translateY(-2px);
}

/* КАРТА — во всю ширину блока, 600px высота */
#map {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px;
    margin-top: 24px;
    border-top: 2px solid #e8e0d0;
    border-bottom: 2px solid #e8e0d0;
    box-sizing: border-box;
}

.ymaps-2-1-79-suggest {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border: 1px solid #e8e0d0 !important;
    font-family: inherit !important;
}

.ymaps-2-1-79-suggest-item {
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.ymaps-2-1-79-suggest-item_selected_yes {
    background: #f0f7ec !important;
}

.address-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e8e0d0;
    transition: all 0.3s ease;
}

.address-display.active {
    background: linear-gradient(135deg, #f0f7ec 0%, #e8f5e0 100%);
    border-color: #d4e8c8;
}

.address-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.address-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address-label {
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.address-display.active .address-label {
    color: #5a9a3a;
}

.address-value {
    font-size: 15px;
    font-weight: 500;
    color: #6a6a6c;
    line-height: 1.4;
}

.address-display.active .address-value {
    color: #3a3a3c;
}

.result-block {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px 40px;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
    color: #5a5a5c;
    gap: 10px;
}

.result-row:first-child {
    border-bottom: 1px solid #e8e0d0;
}

.result-row strong {
    font-size: 20px;
    color: #3a3a3c;
}

.price-paid {
    color: #c84a1e;
}

.result-note {
    color: #8a8a8c;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.delivery-cta {
    text-align: center;
    padding: 32px;
}

.delivery-cta p {
    font-size: 18px;
    color: #5a5a5c;
    margin-bottom: 16px;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6fb34a;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(111, 179, 74, 0.35);
}

.btn-order:hover {
    background: #5a9a3a;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .delivery-terms {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .calculator-block {
        padding: 24px 0;
    }

    .calculator-block h2,
    .calc-form,
    .address-display,
    .result-block {
        padding-left: 24px;
        padding-right: 24px;
    }

    .term-card {
        padding: 24px;
    }

    .delivery-page {
        padding: 24px 14px 60px;
    }

    .page-title {
        margin-bottom: 28px;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .btn-order {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
    }

    #map {
        height: 420px !important;
        min-height: 420px;
    }
}