@import url("buttons.css");

.prices-table-container {

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 40px;
    width: 80%;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.price-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-main-header {
    margin-bottom: 10px;
    padding-top: 10px;
}

.price-columns-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.price-subcolumn {
    text-align: center;
    flex: 1;
}

.prices-table th {
    background: #d4af37;
    color: white;
    font-weight: 500;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
}

.prices-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.prices-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.price-icon {
    color: #d4af37;
    margin-right: 8px;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}
.price-columns-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.price-subcolumn {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    position: relative;
}

.price-subcolumn:first-child:after {
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #ddd;
}

.price-value {
    padding: 0 !important;
}

@media (max-width: 768px) {

    .prices-table-container {
        overflow-x: visible;
        min-width: 0;
        box-shadow: none;
        background: transparent;
    }

    .prices-table {
        display: block;
        min-width: 0;
    }

    .prices-table thead {
        display: none;
    }

    .prices-table tbody,
    .prices-table tr,
    .prices-table td {
        display: block;
        width: 100%;
    }

    .prices-table tr {
        margin-bottom: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .prices-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .prices-table td:before {
        content: attr(data-label);
        font-weight: 500;
        color: #666;
        margin-right: 15px;
        flex: 0 0 120px;
    }

    .prices-table td:last-child {
        border-bottom: none;
    }

    .price-category {
        background: rgba(212, 175, 55, 0.1);
        font-weight: 600;
        font-size: 1.1em;
    }

    .price-category:before {
        display: none;
    }

    .price-type {
        font-weight: 500;
    }

    .price-value {
        display: block;
    }

    .price-columns-wrapper {
        flex-direction: column;
        gap: 5px;
        padding: 0;
    }

    .price-subcolumn {
        text-align: right;
        padding: 0;
    }

    .price-subcolumn:first-child:after {
        display: none;
    }

    .price-notes {
        font-size: 0.85em;
        line-height: 1.4;
    }
    .price-columns-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 5px;
    }

    .price-subcolumn {
        text-align: center;
        padding: 0;
        display: flex;
        justify-content: space-between;
    }

    .price-subcolumn:before {
        content: attr(data-label);
        font-weight: normal;
        color: #666;
        margin-right: 10px;
    }

    .price-subcolumn:first-child:after {
        display: none;
    }

    .price-subcolumn:nth-child(1) {
        data-label: "Физ. лицо:";
    }
    .price-subcolumn:nth-child(2) {
        data-label: "Юр. лицо:";
    }
}

@media (max-width: 480px) {
    .prices-table td {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .prices-table td:before {
        margin-bottom: 5px;
        flex: 0 0 auto;
    }

    .price-columns-wrapper {
        width: 100%;
    }

    .price-subcolumn {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

@media (hover: hover) and (pointer: fine) {
    .prices-table tr:hover td {
        transform: translateX(2px);
    }
}


.calculator-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.calculator {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calculator-form {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.calculator-result {
    flex: 0 0 280px;
}

.result-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #eee;
}

.result-card h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

.result-price {
    font-size: 2em;
    font-weight: bold;
    color: #d4af37;
    margin: 15px 0;
    line-height: 1.2;
}

.result-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.price-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
}

.price-disclaimer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 80%;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 8px;

}

.disclaimer-icon {
    margin-right: 15px;
    color: var(--gold-base);
    font-size: 1.5rem;
}

.disclaimer-text {
    text-align: center;
}

.price-post-disclaimer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    max-width: 80%;
    background: rgba(250, 53, 53, 0.1);
    padding: 15px;
    border-radius: 8px;

}
.post-disclaimer-text {
    text-align: center;
    font-weight: bold;
}
@media (max-width: 992px) {
    .calculator {
        flex-direction: column;
    }

    .calculator-result {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .calculator {
        padding: 20px;
        gap: 20px;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    #calculate-btn {
        grid-column: span 1;
    }

    .result-card {
        padding: 20px;
    }

    .result-price {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 40px 0;
    }

    .calculator {
        padding: 15px;
    }

    .form-control {
        padding: 10px 12px;
    }

    .result-price {
        font-size: 1.5em;
    }
}

select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

input:invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

input:invalid + .error-message {
    display: block;
}

.price-categories {
    padding: 40px 0;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: inherit;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--copper);
    margin-bottom: 20px;
}

.card-cta {
    color: var(--copper);
    font-weight: 600;
    margin-top: 20px;
}