/* ===============================
   Calculator Banner Section
   =============================== */
.calculator-section-bann {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    max-width: 100%;
    padding: 30px;
    margin-bottom: 60px;
    background: #f6f8f9;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Текстовый блок */
.text-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.subtitle {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #00ab55;
}

.title {
    margin: 0;
    font-weight: 500;
    font-size: 54px;
    line-height: 130%;
    color: #212b36;
}

/* Блок с картинкой */
.image-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    margin-left: 40px;
}

.placeholder-image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #e0e0e1;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
}

/* ===============================
   Calculator Main Container
   =============================== */
.calculator {
    max-width: 1328px;
    margin: 0 auto 140px;
    padding: 60px 40px;
    background: #f6f8f9;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
}

.calculator__wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
}

.calculator__box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    row-gap: 15px;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    width: 100%;
}

/* ===============================
   Select Component
   =============================== */
.select {
    position: relative;
    width: 100%;
}

.select__label {
    display: block;
    margin-bottom: 15px;
    font-family: "CoFo Sans", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 130%;
    color: #212b36;
}

.select__trigger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    background-color: #fff;
    border: 2px solid #919eab;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.select__trigger:hover {
    border-color: #454f5b;
}

.select__trigger--active {
    border-color: #00ab55;
    box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.1);
    -webkit-box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.1);
}

.select__value {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: left;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #212b36;
}

.select__value--placeholder {
    color: #919eab;
}

.select__icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: 12px;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}

.select__trigger--active .select__icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.select__icon svg path {
    -webkit-transition: fill 0.2s ease;
    transition: fill 0.2s ease;
}

.select__trigger--active .select__icon svg path {
    fill: #00ab55;
}

.select__dropdown {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 2px solid #919eab;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.select__dropdown--active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.select__list {
    padding: 10px 0;
    list-style: none;
}

.select__item {
    padding: 0;
}

.select__option {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    text-align: left;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #454f5b;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.select__option:hover {
    background-color: rgba(0, 171, 85, 0.05);
    color: #00ab55;
}

.select__option--selected {
    font-weight: 500;
    color: #00ab55;
    background-color: rgba(0, 171, 85, 0.1);
}

/* Стили для скроллбара */
.select__dropdown::-webkit-scrollbar {
    width: 8px;
}

.select__dropdown::-webkit-scrollbar-track {
    margin: 4px;
    background: #f1f1f1;
    border-radius: 4px;
    -webkit-border-radius: 4px;
}

.select__dropdown::-webkit-scrollbar-thumb {
    background: #919eab;
    border-radius: 4px;
    -webkit-border-radius: 4px;
}

.select__dropdown::-webkit-scrollbar-thumb:hover {
    background: #454f5b;
}

/* Firefox */
.select__dropdown {
    scrollbar-width: thin;
    scrollbar-color: #919eab #f1f1f1;
}

/* ===============================
   Input Component
   =============================== */
.input {
    position: relative;
    width: 100%;
}

.input__label {
    display: block;
    margin-bottom: 15px;
    font-family: "CoFo Sans", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 130%;
    color: #212b36;
}

.input__field {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    background-color: #fff;
    border: 2px solid #919eab;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    outline: none;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #212b36;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.input__field:hover {
    border-color: #454f5b;
}

.input__field:focus {
    border-color: #00ab55;
    box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.1);
    -webkit-box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.1);
}

.input__field::-webkit-input-placeholder {
    color: #919eab;
}

.input__field::-moz-placeholder {
    color: #919eab;
}

.input__field:-ms-input-placeholder {
    color: #919eab;
}

.input__field::-ms-input-placeholder {
    color: #919eab;
}

.input__field::placeholder {
    color: #919eab;
}

.select-info {
    margin-left: 15px;
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #00ab55;
}

.select-info--hidden {
    display: none;
}

.calculator__field--hidden {
    display: none;
}

.input__field--error {
    border-color: #ff5630;
}

.input__error {
    margin-top: 8px;
    font-size: 14px;
    line-height: 150%;
    color: #ff5630;
}

.calculate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.calculate-button:disabled:hover {
    background: #00ab55;
    transform: none;
}

/* ===============================
   Button Component
   =============================== */
.calculate-button {
    display: block;
    width: 100%;
    height: 60px;
    margin: 20px auto 0;
    padding: 10px 40px;
    border: none;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    background: #00ab55;
    box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.24);
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.24);
    font-family: "CoFo Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.calculate-button:hover {
    background: #009245;
    box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.3);
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.3);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.calculate-button:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* ===============================
   Result Component
   =============================== */
.result {
    width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    background: #fff;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
}

.result__title {
    margin: 75px 0 15px;
    font-family: "CoFo Sans", sans-serif;
    font-weight: 500;
    font-size: 42px;
    line-height: 130%;
    text-align: center;
    color: #212b36;
}

.result__money {
    margin-bottom: 15px;
    font-family: "CoFo Sans", sans-serif;
    font-weight: 500;
    font-size: 79px;
    line-height: 130%;
    text-align: center;
    color: #212b36;
}

.result__info {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    color: #454f5b;
}

/* ===============================
   General Section
   =============================== */
.general-section {
    margin: 0 0 100px;
}

.general-section__header {
    margin: 0 0 40px;
}

.general-section__title {
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 32px;
    line-height: 130%;
    color: #212b36;
}

.general-section__text {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #454f5b;
}

.wrap > .index-catalog-block {
    text-align: left;
}

.wrap > .index-catalog-block h3 {
    text-align: center;
}

/* ===============================
   About Calculator Section
   =============================== */
.about-calculator {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-column-gap: 35px;
    -moz-column-gap: 35px;
    column-gap: 35px;
    margin: 0 0 160px;
}

.about-calculator__wrap {
    width: 100%;
}

.about-calculator__icon {
    margin: 0 0 30px;
}

.about-calculator__block {
    font-weight: 500;
    font-size: 28px;
    line-height: 130%;
    color: #212b36;
    margin: 0 0 30px;
}

.about-calculator__block-1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    margin: 0 0 30px;
}

.about-calculator__text {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #212b36;
}

.about-calculator__button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    padding: 10px 40px;
    max-width: 199px;
    width: 100%;
    box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.24);
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.24);
    background: #00ab55;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.about-calculator__button:hover {
    background: #009245;
    box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.3);
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.3);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.about-calculator__button:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.about-calculator__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    row-gap: 10px;
    padding: 30px;
}

.about-calculator-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-gap: 40px;
    background-color: #fff;
}

.about-calculator-item__box {
    min-width: 50px;
}

.about-calculator-item__box img {
    width: 48px;
    height: 48px;
}

.about-calculator-item__title {
    font-weight: 500;
    font-size: 28px;
    line-height: 130%;
    color: #212b36;
    margin: 0 0 20px;
}

.about-calculator-item__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #454f5b;
}

.about-calculator-item__text p {
    margin: 0 0 15px;
}

.about-calculator-item__text ul {
    margin: 0 0 15px;
    padding-left: 20px;
}

.about-calculator-item__text ul li {
    list-style-type: disc;
    list-style-position: initial;
}

/* ===============================
   Поддержка старых браузеров (IE10+)
   =============================== */
.tax-calculator-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .tax-calculator-section {
        display: -ms-flexbox;
        display: flex;
    }
    
    .text-content {
        width: 70%;
    }
    
    .image-container {
        width: 30%;
    }
}

/* ===============================
   Медиа-запросы (от большего к меньшему)
   =============================== */

/* 1200px и меньше */
@media screen and (max-width: 1200px) {
    .tax-calculator-section {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .title {
        font-size: 38px;
    }
    
    .image-container {
        margin: 30px 0 0;
    }
}

/* 999px и меньше */
@media (max-width: 999px) {
    .about-calculator__row {
        padding: 40px 20px;
    }
    
    .about-calculator {
        margin-bottom: 60px;
    }
    
    .about-calculator-item__title {
        font-weight: 500;
        font-size: 28px;
        line-height: 130%;
        color: #212b36;
        margin: 0 0 10px;
    }
    
    .about-calculator-item__text p {
        margin: 0 0 10px;
    }
    
    .about-calculator-item__text ul {
        margin: 0 0 10px;
        padding-left: 20px;
    }
    
    .about-calculator-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        row-gap: 20px;
        padding: 15px;
    }
    
    .about-calculator__wrap {
        display: none;
    }
    
    .about-calculator__wrap1 {
        background: #f6f8f9;
    }
    
    .calculator {
        padding: 20px 30px;
        margin-bottom: 60px;
    }
    
    .calculator__wrap {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .about-calculator__button {
        max-width: 100%;
    }
}

/* 768px и меньше */
@media screen and (max-width: 768px) {
    .calculator-section-bann {
        padding: 15px;
    }
    
    .tax-calculator-section {
        padding: 15px;
    }
    
    .title {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .image-container {
        width: 150px;
        height: 150px;
        display: none;
    }
    
    .calculator {
        padding: 20px 15px;
        margin-bottom: 60px;
    }
    
    .result {
        padding: 20px;
    }
    
    .result__title {
        font-size: 32px;
        margin: 40px 0 15px;
    }
    
    .result__money {
        font-size: 60px;
    }
    
    .result__info {
        font-size: 16px;
    }
    
    .select__label,
    .input__label {
        font-size: 20px;
    }
    
    .select__value,
    .input__field,
    .select__option {
        font-size: 16px;
    }
    
    .calculate-button {
        width: 100%;
    }
    
    .general-section {
        margin: 0 0 60px;
    }

    .general-section__header,
    .general-section__title,
    .general-section__text {
        text-align: center;
    }
}

/* 480px и меньше */
@media (max-width: 480px) {
    .tax-calculator-section {
        gap: 25px;
    }
    
    .result {
        padding: 15px;
    }
    
    .result__title {
        font-size: 28px;
    }
    
    .result__money {
        font-size: 48px;
    }
    
    .result__info {
        font-size: 14px;
    }
    
    .calculate-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 767px и меньше (совмещен с 768px) */