@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');

#az-ih-calc.i-block {
    max-width: 100%;
}

#az-ih-calc *:focus {
    outline: none;
}

#az-ih-calc *:not(.az-in button) {
    font-family: 'gotham_proregular', monospace;
    font-size: 15px;
}
@media (max-width: 767.98px) {
    #az-ih-calc *:not(.az-in button) {
        font-size: 12px;
    }
}
#az-ih-calc input::-webkit-outer-spin-button,
#az-ih-calc input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#az-ih-calc input {
    text-align: center;
    -moz-appearance: textfield;
}

#az-ih-calc {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#az-ih-calc .az-in * {
    border: 0;
    margin: 0;
    padding: 0;
    background: 0;
}

#az-ih-calc .yn-input {
    max-width: 202px;
    width: 100%;
    height: 36px;
    border: var(--azc-main) 1px solid;
    border-radius: 9px;
}

#az-ih-calc .num-input {
    max-width: 132px;
    width: max-content;
    height: 36px;
    border: var(--azc-main) 1px solid;
    border-radius: 9px;
}

#az-ih-calc .sw-input {
    height: 36px;
}

#az-ih-calc .num-input input {
    vertical-align: 4px;
    width: 60px;
    color: var(--azc-light);
    height: 36px;
    line-height: 36px;
}
@media (max-width: 471.98px) {
    #az-ih-calc .num-input input {
        width: 50px;
    }
}

#az-ih-calc .num-input button {
    color: var(--azc-main);
    width: 36px;
    height: 36px;
    font-size: 24px;
    vertical-align: 2px;
}
@media (max-width: 767.98px) {
    #az-ih-calc .num-input button {
        font-size: 18px;
    }
}
@media (max-width: 471.98px) {
    #az-ih-calc .num-input button {
        width: 24px;
    }
}
#az-ih-calc .yn-input button {
    max-width: 202px;
    width: 100%;
    height: 36px;
    color: #00000000;
}

#az-ih-calc .yn-input button:before {
    vertical-align: 5px;
    height: 36px;
    line-height: 36px;
    color: var(--azc-light);
    width: calc(50% - 10px);
    padding-left: 10px;
    display: inline-block;
    text-align: left;
}

#az-ih-calc .yn-input button:after {
    height: 36px;
    line-height: 36px;
    font-size: 30px;
    color: var(--azc-main);
    width: calc(50% - 10px);
    padding-right: 10px;
    display: inline-block;
    text-align: right;
}
@media (max-width: 767.98px) {
    #az-ih-calc .yn-input button:after {
        font-size: 22px;
    }
}

#az-ih-calc .yn-input button[azs=true]:before {
    content: 'Да ';
}

#az-ih-calc .yn-input button[azs=false]:before {
    content: 'Нет';
}

#az-ih-calc .yn-input button[azs=true]:after {
    content: '−';
}

#az-ih-calc .yn-input button[azs=false]:after {
    content: '+';
}

#az-ih-calc .sw-input input {
    -webkit-appearance: none;
    appearance: none;
    max-width: 202px;
    width: 100%;
    height: 2px;
    border-radius: 0;
    padding: 0;
}
@media (max-width: 471.98px) {
    #az-ih-calc .sw-input input {
        max-width: 100%;
    }
}

#az-ih-calc .sw-input input[value='0'] {
    background: var(--azc-dark);
}

#az-ih-calc .sw-input input[value] {
    background: linear-gradient(to right,
    var(--azc-main) calc(var(--value) * 25%),
    var(--azc-dark) calc(var(--value) * 25%)
    );
}


#az-ih-calc .sw-input input[value='0'] + div :nth-child(-n+1),
#az-ih-calc .sw-input input[value='1'] + div :nth-child(-n+2),
#az-ih-calc .sw-input input[value='2'] + div :nth-child(-n+3),
#az-ih-calc .sw-input input[value='3'] + div :nth-child(-n+4),
#az-ih-calc .sw-input input[value='4'] + div :nth-child(-n+5) {
    color: var(--azc-main);
}

#az-ih-calc .sw-input span {
    color: var(--azc-dark);
    font-size: 13px;
    display: inline-block;
}
@media (max-width: 767.98px) {
    #az-ih-calc .sw-input span {
        font-size: 10px;
    }
}
#az-ih-calc .sw-input div span:first-child {
    width: calc(14% - 2px);
    text-align: left;
    padding-left: 2px;

}

#az-ih-calc .sw-input div span:last-child {
    width: 15%;
    text-align: right;
}

#az-ih-calc .sw-input div span {
    width: 23%;
    text-align: center;
}

#az-ih-calc .sw-input div {
    max-width: 212px;
}
@media (max-width: 471.98px) {
    #az-ih-calc .sw-input div {
        max-width: 100%;
    }
}

#az-ih-calc input[type=range]::-moz-range-track {
    background: none;
    border: none;
}

#az-ih-calc input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    width: 8px;
    height: 8px;
    background: var(--azc-main);
    border-radius: 5px;
}

#az-ih-calc input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: var(--azc-main);
    border-radius: 5px;
}

#az-ih-calc .calc-tab td div:first-child {
    color: var(--azc-dark);
}

#az-ih-calc .calc-tab td :first-child + div:not([class]), #az-ih-calc .calc-tab td > label {
    color: var(--azc-light);
    font-size: 12px;
}
@media (max-width: 767.98px) {
    #az-ih-calc .calc-tab td :first-child + div:not([class]), #az-ih-calc .calc-tab td > label {
        font-size: 10px;
    }
}
@media (max-width: 471.98px) {
    #az-ih-calc .calc-tab tr {
        display: flex;
        flex-direction: column;
    }
}

#az-ih-calc .yn-input, #az-ih-calc .num-input, #az-ih-calc .sw-input {
    margin-top: 10px;
}

#az-ih-calc .calc-tab td > :first-child {
    margin-bottom: 10px;
    margin-right: 10px;
}

#az-ih-calc .calc-tab tr:not(:first-child) td {
    padding-top: 18px;
}

#az-ih-calc [type=radio] {
    display: none;
}

#az-ih-calc input[type=radio]:checked + * {
    color: var(--azc-main);
}

#az-ih-calc input[type=radio]:not(:checked) + * {
    color: var(--azc-light);
}

#az-ih-calc input[type=radio] + label {
    margin-right: 14px;
}

#az-ih-calc input[type=radio].inr-0:not(:checked) ~ .inr-0,
#az-ih-calc input[type=radio].inr-1:not(:checked) ~ .inr-1,
#az-ih-calc input[type=radio].inr-2:not(:checked) ~ .inr-2,
#az-ih-calc input[type=radio].inr-3:not(:checked) ~ .inr-3 {
    display: none;
}

.calc-tab input[type=radio]:not(:checked) + label::after,
.calc-tab input[type=radio] + label::after {
    content: attr(value);
    opacity: var(--op);
    color: white;
    background: var(--azc-main);
    font-size: 8px;
    font-family: 'gotham_probold', monospace;
    text-align: center;
    width: 12px;
    height: 12px;
    vertical-align: 6px;
    border-radius: 10px;
    display: inline-block;
    line-height: 13px;
}
@media (max-width: 767.98px) {
    .calc-tab input[type=radio]:not(:checked) + label::after,
    .calc-tab input[type=radio] + label::after {
        font-size: 6px;
    }
}

.calc-tab input[type=radio] + label::after {
    opacity: 0;
}

#az-ih-calc [azhid] {
    display: none;
}

#az-ih-calc #az-ih-h, #az-cost {
    text-align: center;
    color: var(--azc-dark);
}

#az-ih-calc #az-ih-h :first-child {
    padding-top: 50px;
    margin-bottom: 20px;
    font-size: 31px;
    font-family: 'gotham_probold', monospace;
}
@media (max-width: 767.98px) {
    #az-ih-calc #az-ih-h :first-child {
        font-size: 24px;
    }
}

#az-ih-calc #az-ih-h :last-child {
    font-size: 20px;
    margin: 10px 0;
}
@media (max-width: 767.98px) {
    #az-ih-calc #az-ih-h :last-child {
        font-size: 16px;
    }
}

#az-ih-calc #az-tab-but {
    text-align: center;
}

#az-ih-calc #aic-t-i label {
    font-weight: normal;
    margin: 0 12px;
}

#az-ih-calc #aic-t-i {
    display: inline;
}

#az-ih-calc td > div:first-child {
    font-family: 'gotham_probold', monospace;
}

#az-ih-calc #az-tab-but button {
    font-weight: normal;
    display: inline;
    border: none;
    padding: 0;
    color: var(--azc-main);
    background: none;
    font-size: 20px;
    margin: 0;
    vertical-align: -2px;
}
@media (max-width: 767.98px) {
    #az-ih-calc #az-tab-but button {
        font-size: 16px;
    }
}

#az-ih-calc #az-cost span:nth-child(2) {
    color: var(--azc-main);
}

#sum-cost-span {
  font-weight: 700;
}

#az-ih-calc #az-cost button {
    margin-top: 24px;
    background: var(--azc-main);
    color: white;
    border-radius: 50px;
    border: 0;
    padding: 18px 48px;
}

#az-ih-calc {
    background: linear-gradient(#e8e8e8, #edeceb);
    background-size: cover;
}

#az-ih-calc .calc-tab {
}

#tabbbbles {
    display: flex;
    justify-content: center;
}

@media screen and (min-width: 1200px) {
    #tabbbbles {
        width: 52%;
        margin: 30px auto;
    }
}

@media screen and (min-width: 800px) and (max-width: 1200px) {
    #tabbbbles {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
}

@media screen and (max-width: 800px) {
    #tabbbbles {
        margin: 20px auto;
    }
}

#az-ih-calc {
    padding-bottom: 10px;
}

#az-ih-calc #az-supertab {
    width: 100%;
    height: 250px;
    text-align: center;
    padding-top: 170px;
}

#az-ih-calc #az-supertab :first-child {
    font-size: 31px;
    font-family: 'gotham_probold', monospace;
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    #az-ih-calc #az-supertab :first-child {
        font-size: 24px;
    }
}

#az-ih-calc #az-supertab :not(:first-child) {
    font-size: 20px;
}
@media (max-width: 767.98px) {
    #az-ih-calc #az-supertab :not(:first-child) {
        font-size: 16px;
    }
}

#az-ih-calc #az-cost :first-child {
    margin-bottom: 30px;
}

#az-ih-calc [alt] {
    position: relative;
}

#az-ih-calc [alt]:hover::before, #az-ih-calc [alt][s-alt='1']::before {
    content: attr(alt);
    position: absolute;
    z-index: 98;
    background: var(--azc-dark);
    color: white;
    font-family: gotham_proregular, sans-serif;
    font-size: 12px;
    padding: 4px;
    border-radius: 5px;
    -webkit-animation: .3s move_eye;
    -moz-animation: .3s move_eye;
    -o-animation: .3s move_eye;
    animation: .3s move_eye;
    text-align: center;
    white-space: pre-wrap;
    width: var(--width);
    left: var(--left);
    top: var(--top);
}
@media (max-width: 767.98px) {
    #az-ih-calc [alt]:hover::before, #az-ih-calc [alt][s-alt='1']::before {
        font-size: 10px;
    }
}

#az-ih-calc [alt]:hover::before {
    z-index: 99;
}

#az-ih-calc td:first-child {
    width: 55%;
}
@media (max-width: 471.98px) {
    #az-ih-calc td:first-child {
        width: 100%;
    }
}

@-webkit-keyframes move_eye {
    from {
        top: 0;
        transform: rotate3d(0, 1, 0, 90deg);
    }
    to {
        top: var(--top);
    }
}

@-moz-keyframes move_eye {
    from {
        top: 0;
        transform: rotate3d(0, 1, 0, 90deg);
    }
    to {
        top: var(--top);
    }
}

@-o-keyframes move_eye {
    from {
        top: 0;
        transform: rotate3d(0, 1, 0, 90deg);
    }
    to {
        top: var(--top);
    }
}

@keyframes move_eye {
    from {
        top: 0;
        transform: rotate3d(0, 1, 0, 90deg);
    }
    to {
        top: var(--top);
    }
}

:root {
    --value: 0;
    --azc-light: #7a7b7b;
    --azc-dark: #262626;
    --azc-main: #c4344f;
    --tp: 11px;
    --width: 200px;
    --wc: 50%;
    --op: 0%;
    --top: calc(100% + var(--tp));
    --left: calc(var(--wc) - var(--width) / 2);
}
