.calculator__header {
    background: linear-gradient(135deg, #b19367 0%, #967854 100%);
    box-shadow: 0 20px 60px rgba(107, 114, 128, 0.15);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
}

@media (max-width: 766.98px) {
    .calculator__header {
        padding: 30px 15px;
    }
}

.calculator__title {
    margin: 0 0 15px 0;
}

.calculator__title h1 {
    color: #fff;
}

.calculator__content {
    padding: 30px 0;
}

.calculator__section {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
}

@media (max-width: 479.98px) {
    .calculator__section {
        margin-bottom: 0;
    }
}

.calculator__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b19367;
    display: inline-block;
    width: max-content;
}

@media (max-width: 479.98px) {
    .calculator__subtitle {
        width: auto;
    }
}

.calculator__subsubtitle {
    font-size: 18px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #b19367;
    display: inline-block;
    width: max-content;
}

.calculator__cards {
    display: flex;
    margin: 0 -7.5px;
}

@media (max-width: 990.98px) {
    .calculator__cards {
        display: flex;
        flex-wrap: wrap;
    }
}

.calculator__card {
    margin: 0 7.5px;
    flex: 0 1 calc(16.666% - 15px);
}

@media (max-width: 990.98px) {
    .calculator__card {
        margin: 0 7.5px 15px 7.5px;
        flex: 0 1 calc(33.333% - 15px);
    }
}

@media (max-width: 767.98px) {
    .calculator__card {
        margin: 0 7.5px 15px 7.5px;
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 767.98px) {
    .calculator__card {
        margin: 0 7.5px 15px 7.5px;
        flex: 0 1 calc(100% - 15px);
    }
}

.card-calculator {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.card-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b19367 0%, #967854 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-calculator:hover {
    border-color: #b19367;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(177, 147, 103, 0.15);
}

.card-calculator.active {
    border-color: #b19367;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
}

.card-calculator.active::before {
    transform: scaleX(1);
}

.card-calculator__image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #b19367 0%, #967854 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.card-calculator__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.card-calculator__title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.calculator__form-row {
    display: flex;
    margin: 0 -7.5px 30px -7.5px;
}

@media (max-width: 479.98px) {
    .calculator__form-row {
        flex-wrap: wrap;
        margin: 0;
    }
}

.calculator__form-group {
    display: flex;
    flex-direction: column;
    flex: 0 1 calc(100% - 15px);
    margin: 0 7.5px 0 7.5px;
}

@media (max-width: 479.98px) {
    .calculator__form-group {
        margin: 0;
        flex: 0 1 100%;
        margin: 0 0 30px 0;
    }
}

.calculator__form-label {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

.calculator__form-select-frame {
    width: 100%;
    position: relative;
}

.calculator__form-select-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    display: block;
    transform: translateY(-50%) rotate(45deg);
      width: 8px;
      height: 8px;
      border: 2px solid #6b7280;
      border-left: 0;
      border-top: 0;
}

.calculator__form-input,
.calculator__form-select {
    height: 60px;
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.calculator__form-input:focus,
.calculator__form-select:focus {
    outline: none;
    border-color: #b19367;
    box-shadow: 0 0 0 3px rgba(177, 147, 103, 0.1);
}

.calculator__form-input::placeholder {
    color: #cbd5e0;
}

.calculator__form-input:disabled,
.calculator__form-select:disabled,
.calculator__btn:disabled,
.calculator__counter-btn:disabled {
    background-color: #f7f7f7;
    color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.6;
}

.calculator__section--disabled {
    pointer-events: none;
    opacity: 0.5;
}

.calculator__selected-construction {
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, #f5f2ed 0%, #ebe6df 100%);
    border: 2px solid #b19367;
    border-radius: 12px;
    color: #967854;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: max-content;
    margin-bottom: 30px;
}

@media (max-width: 479.98px) {
    .calculator__selected-construction {
        max-width: 100%;
    }
}

.calculator__selected-construction:hover {
    background: linear-gradient(135deg, #b19367 0%, #967854 100%);
    color: #fff;
    transform: translateY(-1px);
}

.calculator__counter-container {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: 60px;
    width: max-content;
}

.calculator__counter-btn {
    width: 40px;
    height: 100%;
    background-color: #b19367;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.calculator__counter-btn:hover:not(:disabled) {
    opacity: 0.6;
}

.calculator__counter-input {
    border: none;
    width: 80px;
    text-align: center;
    font-size: 16px;
    padding: 15px;
    height: 100%;
}

.calculator__radio-group {
    display: flex;
}

.calculator__radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #2d3748;
}

.calculator__radio-label:not(:first-child) {
    margin: 0 0 0 10px;
}

.calculator__radio-label span {
    width: 24px;
    height: 24px;
    margin: 0 10px 0 0;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.calculator__radio-label span::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: block;
    background-color: #b19367;
    border-radius: 100px;
    transition: transform 0.3s ease;
}

.calculator__radio-input:checked + span::after {
    transform: translate(-50%, -50%) scale(1);
}

.calculator__radio-input {
    display: none;
}

.calculator__radio-input:disabled {
    cursor: not-allowed;
}

.calculator__print-cards {
    display: flex;
    margin: 0 -7.5px 0 -7.5px;
}

@media (max-width: 479.98px) {
    .calculator__print-cards {
        flex-wrap: wrap;
    }
}

.calculator__print-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
    flex: 0 1 calc(33.333% - 15px);
    margin: 0 7.5px 0 7.5px;
}

@media (max-width: 766.98px) {
    .calculator__print-card {
        padding: 15px 5px;
        flex: 0 1 calc(100% - 15px);
    }
}

.calculator__print-card input {
    display: none;
}

.calculator__print-card.enabled input::checked {
    
}

.calculator__print-card.enabled {
    opacity: 1;
    pointer-events: auto;
}

.calculator__print-card.enabled:hover {
    border-color: #b19367;
    background-color: #faf8f5;
}

.calculator__print-card.active {
    border-color: #b19367;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
}

.calculator__print-card-name {
    font-size: 18px;
    font-weight: 500;
}

.calculator__print-card-colors {
    margin: 10px 0 0 0;
}

.calculator__file-upload-container {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.calculator__file-upload-container input {
    display: none;
}

.calculator__file-upload-container:hover {
    border-color: #b19367;
    background: #faf8f5;
}

.calculator__file-upload-container.has-file {
    border-style: solid;
    border-color: #b19367;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
}

.calculator__file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calculator__file-upload-text img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) saturate(100%) invert(64%) sepia(7%) saturate(2070%) hue-rotate(357deg) brightness(93%) contrast(86%);
}

.calculator__file-upload-text span {
    display: block;
    margin: 10px 0 0 0;
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
}
.calculator__file-info {
    display: none;
    align-items: center;
    justify-content: center;
}

.calculator__file-name {
    color: #2d3748;
    font-weight: 500;
    margin: 0 15px 0 0;
}

.calculator__file-remove {
    position: relative;
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease;
}

.calculator__file-remove::before,
.calculator__file-remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ff0000;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.calculator__file-remove::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.calculator__file-remove:hover {
    opacity: 0.7;
}

.calculator__textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.calculator__textarea:focus {
    outline: none;
    border-color: #b19367;
    box-shadow: 0 0 0 3px rgba(177, 147, 103, 0.1);
}

.calculator__textarea:disabled {
    background: #f7f7f7;
    color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.6;
}

.calculator__button-group {
    display: flex;
    flex-wrap: wrap;
}

.calculator__btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

@media (max-width: 767.98px) {
    .calculator__btn {
        width: 100%;
    }
}

.calculator__btn-primary {
    background: linear-gradient(135deg, #b19367 0%, #967854 100%);
    color: #fff;
    margin: 0 15px 0 0;
}

@media (max-width: 767.98px) {
    .calculator__btn-primary {
        margin: 0 0 15px 0;
    }
}

.calculator__btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(177, 147, 103, 0.3);
}

.calculator__btn-secondary {
    background-color: #fff;
    border: 2px solid #6b7280;
    color: #6b7280;
}

.calculator__btn-secondary:hover:not(:disabled) {
    background-color: #6b7280;
    color: #fff;
}

.calculator__warning-text {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 12px;
    color: #92400e;
    font-size: 14px;
    margin: 15px 0;
}

@media (max-width: 479.98px) {
    .calculator__warning-text {
        margin: 0 0 15px 0;
    }
}

.calculator__policy-text {
    margin: 15px 0 0 0;
    font-size: 16px;
    color: #6b7280;
}

.calculator__checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    margin-top: 15px;
}

.calculator__checkbox-label span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    margin: 0 10px 0 0;
}

.calculator__checkbox-label span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: block;
    border-radius: 3px;
    width: 65%;
    height: 65%;
    background-color: #b19367;
    transition: transform 0.3s ease;
}
.calculator__checkbox-input:checked + span::after {
    transform: translate(-50%, -50%) scale(1);
}
.calculator__checkbox-input {
    display: none;
}
.calculator__checkbox-input:disabled {
    cursor: not-allowed;
}

.modal {
    opacity: 1;
    visibility: visible;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content-wide {
    max-width: 900px;
}

.modal-header {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #b19367;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.modal-close {
    font-size: 30px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #b19367;
}

.fefco-group {
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.fefco-group.active {
    border-color: #b19367;
}

.fefco-group-header {
    padding: 15px;
    background-color: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.fefco-group-header:hover {
    background-color: #f5f2ed;
}

.fefco-group.active .fefco-group-header {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    border-bottom: 2px solid #e2e8f0;
}

.fefco-arrow {
    color: #b19367;
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
    margin: 0 15px 0 0;
}

.fefco-group.active .fefco-arrow {
    transform: rotate(90deg);
}

.fefco-header-content {
    display: flex;
    flex-direction: column;
}

.fefco-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.fefco-header-desc {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.fefco-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

.fefco-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: padding 0.4s ease, 
                opacity 0.4s ease, 
                transform 0.4s ease;
}

.fefco-group.active .fefco-products-grid {
    padding: 15px;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.fefco-product {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    opacity: 0;
    transform: scale(0.95);
}

.fefco-group.active .fefco-product {
    opacity: 1;
    transform: scale(1);
    animation: fadeInScale 0.4s ease forwards;
}

.fefco-group.active .fefco-product:nth-child(1) { animation-delay: 0.05s; }
.fefco-group.active .fefco-product:nth-child(2) { animation-delay: 0.1s; }
.fefco-group.active .fefco-product:nth-child(3) { animation-delay: 0.15s; }
.fefco-group.active .fefco-product:nth-child(4) { animation-delay: 0.2s; }
.fefco-group.active .fefco-product:nth-child(5) { animation-delay: 0.25s; }
.fefco-group.active .fefco-product:nth-child(6) { animation-delay: 0.3s; }

.fefco-product:hover {
    border-color: #b19367;
    background: #faf8f5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(177, 147, 103, 0.15);
}

.fefco-product-image {
    font-size: 40px;
    margin-bottom: 15px;
    color: #b19367;
}

.fefco-product-text {
    font-size: 13px;
    color: #2d3748;
    line-height: 1.4;
}

.fefco-product-text span {
    display: block;
}

.fefco-product-name {
    font-size: 14px;
    font-weight: 600;
}

.fefco-product-description {
    font-size: 12px;
    font-weight: 400;
}

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

.fefco-group:not(.active) .fefco-products-grid {
    transition: padding 0.3s ease,
                opacity 0.2s ease,
                transform 0.2s ease;
    transition-delay: 0s;
}

.fefco-group:not(.active) .fefco-product {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
    .fefco-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .fefco-group.active .fefco-products-grid {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fefco-group-content,
    .fefco-products-grid,
    .fefco-product,
    .fefco-arrow {
        transition: none !important;
        animation: none !important;
    }
    
    .fefco-group.active .fefco-products-grid {
        opacity: 1;
        transform: none;
    }
    
    .fefco-group.active .fefco-product {
        opacity: 1;
        transform: none;
    }
}

.help__modal .calculator__form-group {
    margin: 0 7.5px 15px 7.5px;
}

.help__modal .calculator__btn {
    width: 100%;
    margin: 0;
}

.help__modal-text {
    margin-top: 15px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

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

    .construction-grid {
        grid-template-columns: 1fr;
    }

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

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .fefco-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-content-wide {
        max-width: 95%;
    }

    .section-disabled::after {
        font-size: 14px;
        padding: 15px 20px;
        white-space: normal;
        text-align: center;
    }
}