.calculator-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.calculator-card {
    width: 605px;
    height: auto;
    min-height: 762px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 2px solid #E2E2E2;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
}

.card-inner {
    padding: 53px 60px 53px 60px;
    display: flex;
    flex-direction: column;
}

.result-card {
    width: 366px;
    height: auto;
    min-height: 762px;
    background: linear-gradient(90deg, #16AE48 20.35%, #76E94F 99.54%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
}

.result-inner {
    padding-top: 58px;
    display: flex;
    flex-direction: column;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.step-number-plain {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
}

.tooltip-svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 35px;
    margin-bottom: 40px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 19px;
    cursor: pointer;
    font-family: "Gotha Pro Light", sans-serif;
    font-weight: 700;
}

.custom-radio {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 1.5px solid #16AE48;
    border-radius: 50%;
    transition: all 0.1s ease;
}

.custom-radio input:checked ~ .radio-checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #16AE48;
    border-radius: 50%;
}

.custom-radio:hover .radio-checkmark {
    border-color: #0f8a36;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border: 2px solid #16AE48;
    border-radius: 4px;
    transition: all 0.1s ease;
}

.custom-checkbox input:checked ~ .checkbox-checkmark {
    background: #16AE48;
    border-color: #16AE48;
}

.custom-checkbox input:checked ~ .checkbox-checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox:hover .checkbox-checkmark {
    border-color: #0f8a36;
}

.option-item label {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #333333;
    cursor: pointer;
}

.topic-section {
    margin-bottom: 40px;
}

.size-section {
    margin-bottom: 40px;
}

.specialists-section {
    margin-bottom: 0;
}

.custom-select {
    position: relative;
    width: calc(100% - 38px);
    cursor: pointer;
}

.select-trigger {
    background: #FFFFFF;
    border: 2px solid #D9D9D9;
    border-radius: 6px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #212121;
}

.select-arrow {
    position: relative;
    width: 12px;
    height: 6px;
    display: inline-block;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.custom-select.open .select-dropdown {
    display: block;
}

.select-dropdown::-webkit-scrollbar {
    width: 5px;
}

.select-dropdown::-webkit-scrollbar-track {
    background: #E0E0F1;
    border-radius: 4px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #B0B0C7;
    border-radius: 4px;
}

.select-option {
    padding: 12px 16px;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    border-top: 1px solid #D9D9D9;
    border-left: 1px solid #D9D9D9;
    border-right: 1px solid #D9D9D9;
    transition: background 0.1s;
    cursor: pointer;
}

.select-option:last-child {
    border-bottom: 1px solid #D9D9D9;
}

.select-option:hover {
    background-color: #F5F5F5;
}

.select-option.selected {
    background-color: #E9F7EF;
    color: #16AE48;
}

.slider-container {
    margin-top: 14px;
    width: 100%;
    position: relative;
}

.calculator-wrapper .slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.slider-progress-track {
    top: 8px;
    left: 8px;
    right: 8px;
    position: relative;
    width: calc(100% - 16px);
    height: 4px;
    background: #D9D9D9;
    border-radius: 2px;
    pointer-events: none;
}

.slider-progress-fill {
    position: absolute;
    height: 100%;
    background: #16AE48;
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
    z-index: 1;
}

.custom-slider {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    z-index: 5;
    margin: 0;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 1.5px solid #16AE48;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: -6px;
    position: relative;
    z-index: 20;
    background-image: radial-gradient(circle at center, #16AE48 3px, #FFFFFF 3.5px);
    background-size: 8px 8px;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.slider-ticks {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
    display: flex;
    justify-content: space-between;
}

.tick-mark {
    position: relative;
    width: 0;
    height: 16px;
    border-left: 2px solid #979191;
    transform: translateX(-50%);
}

.tick-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    font-family: "Gotha Pro Light",sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #444;
}

.tick-label-item {
    text-align: center;
    white-space: nowrap;
}

.calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 261px;
    height: 42px;
    background: #F24235;
    border: none;
    border-radius: 100px;
    padding: 10px 30px;
    margin: 0 auto;
    margin-top: 67px;
    cursor: pointer;
    transition: 0.2s;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    position: relative;
}

.btn-arrow {
    position: absolute;
    right: 10px;
    font-size: 0;
    line-height: 0;
    width: 8px;
    height: 12px;
    display: inline-block;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: center;
}
/*
.calculate-btn:hover {
    background: #d63a2e;
    transform: scale(0.98);
}*/

.result-title {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: #333333;
    margin-bottom: 60px;
    padding: 0px 48px;
}

.price-block {
    text-align: center;
    margin-bottom: 30px;
}

.price-value {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 130%;
    color: #FFFFFF;
}

.price-currency, .price-before {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    color: #FFFFFF;
}

.disclaimer-text {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
    color: #FFFFFF;
    margin-bottom: 25px;
    padding: 0 13px 0 38px;
}

.result-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 92px;
    padding: 0 38px;
}

.result-form .result-input {
    width: calc(100% - 38px);
    height: 44px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 30px;
    padding: 0 20px;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #535151;
    outline: none;
    transition: 0.2s;
}

.result-input:focus {
    border-color: #16AE48;
}

.result-input::placeholder {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #535151;
}

.result-input.error {
    border-color: #F24235;
}

.submit-btn {
    width: calc(100% - 76px);
    margin: 0 38px 17px 38px;
    height: 42px;
    background: #F24235;
    border: none;
    border-radius: 100px;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
}
/*
.submit-btn:hover {
    background: #d63a2e;
    transform: scale(0.98);
}*/

.submit-btn .btn-arrow-right {
    position: absolute;
    right: 10px;
    font-size: 0;
    line-height: 0;
    width: 8px;
    height: 12px;
    display: inline-block;
    background-image: url("");
    background-repeat: no-repeat;
    background-position: center;
}

.agreement-text, .agreement-text a {
    text-align: center;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    padding: 0 24px;
}

.agreement-text span, .agreement-text a {
    text-decoration: underline;
    text-decoration-style: solid;
    cursor: pointer;
    border-bottom: none;
}

.manager-text {
    text-align: center;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    margin-top: 17px;
    padding: 0 24px;
    opacity: 0.9;
}

span.tooltip-icon {
    top: 1px;
    position: relative;
}

.result-card {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-card.visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1025px) {
    .result-card {
        display: block; /* или оставить display: none, если тоже по клику */
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .calculator-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .calculator-card {
        width: 100%;
        max-width: 610px;
    }
    
    .result-card {
        width: 100%;
        max-width: 366px;
    }
}

@media (max-width: 768px) {
    .card-inner {
        padding: 40px 30px 40px 30px;
    }
    
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
    }
    
    .specialists-section .two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .option-item {
        gap: 15px;
    }
    
    .custom-select {
        max-width: 100%;
    }
    
    .tick-labels {
        margin-top: 20px;
    }
    
    .tick-label-item {
        font-size: 14px;
    }
    
    .calculate-btn {
        width: 100%;
        max-width: 261px;
        margin-top: 50px;
    }
    
    .result-title {
        font-size: 22px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .disclaimer-text {
        font-size: 14px;
        padding: 0 10px 0 30px;
        margin-bottom: 20px;
    }
    
    .result-form {
        gap: 15px;
        padding: 0 30px;
    }
    
    .result-input {
        height: 40px;
        font-size: 14px;
    }
    
    .result-input::placeholder {
        font-size: 14px;
    }
    
    .submit-btn {
        width: calc(100% - 60px);
        margin: 0 30px 15px 30px;
        height: 40px;
        font-size: 16px;
    }
    
    .agreement-text {
        font-size: 14px;
        padding: 0 15px;
    }

    .agreement-text span, .agreement-text a {
        font-size: 14px;
    }
    
    .manager-text {
        font-size: 10px;
        margin-top: 12px;
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .step-number-plain {
        font-size: 18px;
    }
    
    .section-label {
        font-size: 18px;
    }
    
    .custom-tooltip {
        max-width: 220px !important;
        font-size: 11px !important;
    }

    .radio-checkmark {
        border: 1px solid #BDBCDB;
    }

    .checkbox-checkmark {
        border: 2px solid #BDBCDB;
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 480px) {
    .card-inner {
        padding: 30px 20px 30px 20px;
    }
    
    .two-col-grid {
        gap: 18px;
        margin-bottom: 25px;
    }
    
    .option-item {
        gap: 12px;
    }
    
    .option-item label {
        font-size: 16px;
    }
    
    .section-header {
        gap: 6px;
    }
    
    .step-number-plain {
        font-size: 18px;
    }
    
    .section-label {
        font-size: 18px;
    }
    
    .slider-wrapper {
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .tick-labels {
        margin-top: 14px;
    }
    
    .tick-label-item {
        font-size: 14px;
    }
    
    .tick-mark {
        height: 12px;
    }
    
    .calculate-btn,
    .submit-btn {
        height: 38px;
        font-size: 16px;
    }
    
    .btn-arrow,
    .btn-arrow-right {
        width: 6px;
        height: 10px;
        background-size: contain;
    }

    .result-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .disclaimer-text {
        font-size: 14px;
        padding: 0 5px 0 20px;
    }
    
    .result-form {
        padding: 0 20px;
    }
    
    .submit-btn {
        width: calc(100% - 40px);
        margin: 0 20px 12px 20px;
    }
    
    .agreement-text,
    .manager-text {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .calculator-wrapper {
        gap: 20px;
    }
    
    .two-col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 25px;
    }
    
    .specialists-section .two-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dots-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #FFFFFF;
    border-radius: 50%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #16AE48 20.35%, #76E94F 99.54%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.result-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.result-loader-text {
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    text-align: center;
    color: #FFFFFF;
    margin-top: 20px;
}

.result-content {
    transition: 0.3s ease;
}

.result-card {
    position: relative;
    overflow: hidden;
}

.result-card {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-card.visible {
    opacity: 1;
    visibility: visible;
}

.custom-tooltip {
    position: fixed;
    background-color: #FFFFFF;
    color: #333333;
    padding: 6px 8px;
    border: 1px solid #16AE48;
    border-radius: 4px;
    font-size: 12px;
    font-family: "Gotha Pro Light",sans-serif;
    font-weight: 700;
    line-height: 1.4;
    max-width: 253px;
    width: max-content;
    min-width: 150px;
    box-shadow: 0px 4px 8px 0px rgba(142, 141, 208, 0.16);
    z-index: 9999;
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
}
