/* ISO 286 Tolerance Calculator */
.iso-calc { font-family: 'Open Sans', sans-serif; }
.iso-calc.section {
    padding-bottom: 60px;
}
.iso-calc .faq {
    margin-top: 48px;
}
@media (max-width: 991px) {
    .iso-calc.section {
        padding-bottom: 48px;
    }
}

/* ===== TWO-COLUMN LAYOUT ===== */
.iso-calc__main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 32px;
    align-items: stretch;
}
.iso-calc__inputs-col {
    width: 508px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.iso-calc__visual-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== CARD (input section) ===== */
.iso-calc__card {
    background: #F6F9FF;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(35, 37, 39, 0.16);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===== TABS ===== */
.iso-calc__tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.iso-calc__tab {
    padding: 10px 8px;
    border: 1px solid #C1CAD1;
    border-radius: 4px;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
    color: #092C47;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s;
}
.iso-calc__tab:hover {
    border-color: #1A5ADE;
}
.iso-calc__tab--active {
    background: #1A5ADE;
    color: #fff;
    border: 1px solid #1A5ADE;
}

/* ===== FORM ROW ===== */
.iso-calc__form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.iso-calc__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.iso-calc__field--nominal { width: 167px; }
.iso-calc__field--fit { flex: 1; min-width: 200px; }

/* ===== FREE-FORM LAYOUT ===== */
.iso-calc__form-free {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.iso-calc__form-free .iso-calc__form-row {
    flex-wrap: nowrap;
}
.iso-calc__field--nominal-free { width: 220px; }
.iso-calc__field--half { width: 220px; flex-shrink: 0; }

/* ===== LABEL ===== */
.iso-calc__label {
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #0E6AED;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* ===== INPUT ===== */
.iso-calc__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #D1D6DC;
    border-radius: 6px;
    height: 44px;
    overflow: hidden;
}
.iso-calc__input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 60px 0 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #22445F;
    outline: none;
    -moz-appearance: textfield;
}
.iso-calc__input::-webkit-outer-spin-button,
.iso-calc__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.iso-calc__unit {
    position: absolute;
    right: 30px;
    font-size: 14px;
    color: #8495A3;
    pointer-events: none;
}
.iso-calc__spin {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 25px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #D1D6DC;
}
.iso-calc__spin button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.iso-calc__spin button:first-child {
    border-bottom: 1px solid #D1D6DC;
}
.iso-calc__spin button:hover { background: #F6F7F8; }

/* ===== SELECT ===== */
.iso-calc__select-wrap {
    position: relative;
    background: #fff;
    border: 1px solid #C1CAD1;
    border-radius: 6px;
    height: 44px;
}
.iso-calc__select {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 30px 0 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #092C47;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}
.iso-calc__select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #8495A3;
    pointer-events: none;
}

/* ===== RADIO BUTTONS (system basis) ===== */
.iso-calc__basis {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.iso-calc__radio-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #C1CAD1;
    border-radius: 8px;
    padding: 12px 16px;
    height: 48px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.iso-calc__radio-wrap--active {
    border-color: #0E6AED;
}
.iso-calc__radio-wrap input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #0E6AED;
    cursor: pointer;
}
.iso-calc__radio-label {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #092C47;
}
.iso-calc__radio-wrap--active .iso-calc__radio-label {
    color: #0E6AED;
}

/* ===== ERROR MESSAGE ===== */
.iso-calc__error {
    background: #FFF0F0;
    border: 1px solid #E63817;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #E63817;
}

/* ===== RESULT CARD (Figma style — simple blue) ===== */
.iso-calc__result-card {
    background: #E6F0FD;
    border: 1px solid #0E6AED;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.iso-calc__result-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.iso-calc__result-card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.iso-calc__result-card-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    color: #092C47;
    text-transform: uppercase;
    letter-spacing: 0;
}
.iso-calc__result-card-approx {
    font-size: 18px;
    font-weight: 700;
    color: #092C47;
    line-height: 1;
}
.iso-calc__result-card-info {
    margin-left: auto;
    cursor: help;
    line-height: 1;
}
.iso-calc__result-card-type {
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #8495A3;
}
.iso-calc__result-card-value {
    font-weight: 700;
    font-size: 22px;
    line-height: 32px;
    color: #0E6AED;
    padding-left: 0;
    margin-top: 6px;
}

/* ===== FIT DESCRIPTION CARD (changes color by fit type) ===== */
.iso-calc__fit-desc {
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
    width: 100%;
    order: 3;
}
.iso-calc__fit-desc-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: left;
    margin: 0 0 20px 0;
}
.iso-calc__fit-desc-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    margin: 0;
}
/* Clearance — lime with dashed border */
.iso-calc__fit-desc--clearance {
    background: #DDF27D;
    border: none;
}
.iso-calc__fit-desc--clearance .iso-calc__fit-desc-title {
    color: #041A6D;
}
.iso-calc__fit-desc--clearance .iso-calc__fit-desc-text {
    color: #092C47;
}
/* Transition — warm beige */
.iso-calc__fit-desc--transition {
    background: #ECECE0;
    border: none;
}
.iso-calc__fit-desc--transition .iso-calc__fit-desc-title {
    color: #041A6D;
}
.iso-calc__fit-desc--transition .iso-calc__fit-desc-text {
    color: #092C47;
}
/* Interference — blue with white text */
.iso-calc__fit-desc--interference {
    background: #0F6AEE;
    border: none;
}
.iso-calc__fit-desc--interference .iso-calc__fit-desc-title {
    color: #ECECE0;
}
.iso-calc__fit-desc--interference .iso-calc__fit-desc-text {
    color: #ECECE0;
}

/* ===== VISUALIZATION ===== */
.iso-calc__viz {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.iso-calc__viz-chart {
    width: 100%;
    max-width: 415px;
    height: 295px;
    position: relative;
}
.iso-calc__viz-chart svg {
    width: 100%;
    height: 100%;
}
.iso-calc__viz-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.iso-calc__viz-img--active {
    display: block;
}

/* ===== SPECIFICATION CARDS ===== */
.iso-calc__specs-table {
    display: flex;
    width: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}
.iso-calc__specs-half {
    flex: 1;
}
.iso-calc__specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #E6F0FD;
    border-bottom: 1px solid #C1CAD1;
    padding: 12px 24px;
    height: 40px;
    gap: 32px;
}
.iso-calc__specs-half--hole .iso-calc__specs-header {
    border-radius: 0;
}
.iso-calc__specs-half--shaft .iso-calc__specs-header {
    border-radius: 0;
}
.iso-calc__specs-label {
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #476175;
    text-transform: uppercase;
    letter-spacing: 0;
}
.iso-calc__specs-designation {
    font-weight: 700;
    font-size: 16px;
    color: #0E6AED;
}
.iso-calc__specs-designation--orange {
    color: #E63817;
}
.iso-calc__specs-body {
    background: #F6F9FF;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.iso-calc__specs-half--shaft .iso-calc__specs-body {
    border-left: none;
}
.iso-calc__specs-half--hole .iso-calc__specs-body {
    border-radius: 0;
}
.iso-calc__specs-half--shaft .iso-calc__specs-body {
    border-radius: 0;
}
.iso-calc__specs-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.iso-calc__specs-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.iso-calc__specs-cell--right {
    text-align: right;
    align-items: flex-end;
}
.iso-calc__specs-cell-label {
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: #476175;
    text-transform: uppercase;
    letter-spacing: 0;
}
.iso-calc__specs-cell-value {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #092C47;
}
.iso-calc__specs-cell-value--blue {
    font-size: 14px;
    line-height: 20px;
    color: #0E6AED;
}
.iso-calc__specs-cell-value--orange {
    font-size: 14px;
    line-height: 20px;
    color: #E63817;
}

/* ===== 5-SLIDE SLIDER ===== */
.iso-calc__slider {
    margin-top: 32px;
    background: #F1F5F9;
    border-radius: 16px;
    padding: 40px 0;
    display: flex;
    align-items: center;
    position: relative;
}
.iso-calc__slider-viewport {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
}
.iso-calc__slider-slide {
    display: none;
}
.iso-calc__slider-slide--active {
    display: block;
    text-align: center;
}
.iso-calc__slider-img {
    max-width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}
.iso-calc__slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.iso-calc__slider-arrow--prev,
.iso-calc__slider-arrow--next {
    background: #1A5ADE;
    color: #fff;
}
.iso-calc__slider-arrow--prev { margin-left: 16px; }
.iso-calc__slider-arrow--next { margin-right: 16px; }
.iso-calc__slider-arrow:hover {
    background: #1248B5;
}
.iso-calc__slider-arrow.iso-calc__slider-arrow--disabled {
    background: #C5DBFA;
    cursor: default;
}
.iso-calc__slider-arrow.iso-calc__slider-arrow--disabled:hover {
    background: #C5DBFA;
}
.iso-calc__slider-arrow svg path {
    color: #fff;
}

/* ===== TABLET (1200px) ===== */
@media (max-width: 1200px) {
    .iso-calc__main {
        gap: 24px;
        margin-top: 60px;
    }
    .iso-calc__fit-desc {
        margin-top: 60px;
        margin-bottom: 68px;
    }
    .iso-calc__inputs-col {
        width: 380px;
    }
    .iso-calc__form-free .iso-calc__form-row {
        flex-wrap: wrap;
    }
    .iso-calc__field--nominal-free { width: 50%; }
    .iso-calc__field--half { width: calc(50% - 10px); flex-shrink: 0; }
    .iso-calc__viz-chart {
        max-width: 280px;
        height: 200px;
    }
    .iso-calc__specs-table {
        flex-direction: column;
    }
    .iso-calc__specs-table {
        border-radius: 0;
        overflow: visible;
    }
    .iso-calc__specs-half--hole {
        border-radius: 8px 0 0 8px;
        overflow: hidden;
    }
    .iso-calc__specs-half--shaft {
        margin-top: 12px;
        border-radius: 0 8px 8px 0;
        overflow: hidden;
    }
}



/* ===== MOBILE (<768px) ===== */
@media (max-width: 767px) {
    .iso-calc__main {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
    }
    .iso-calc__inputs-col {
        width: 100%;
        order: 1;
    }
    .iso-calc__fit-desc {
        order: 2;
        margin-top: 36px;
        margin-bottom: 36px;
    }
    .iso-calc__visual-col {
        order: 3;
    }
    .iso-calc__form-row {
        flex-direction: column;
        gap: 12px;
    }
    .iso-calc__field--nominal { width: 50%; }
    .iso-calc__field--nominal-free { width: 50%; }
    .iso-calc__form-free .iso-calc__form-row {
        flex-wrap: wrap;
    }
    .iso-calc__field--half { width: 100%; flex-shrink: 1; }
    .iso-calc__field--fit { width: 100%; }
    .iso-calc__tabs { flex-wrap: wrap; }
    .iso-calc__card { padding: 20px; }
    .iso-calc__result-card { padding: 16px; }
    .iso-calc__result-card-value { font-size: 18px; }
    .iso-calc__specs-table {
        flex-direction: column;
    }
    .iso-calc__specs-half--shaft .iso-calc__specs-header {
        border-top: 1px solid #C1CAD1;
    }
    .iso-calc__specs-header { padding: 8px 12px; }
    .iso-calc__specs-body { padding: 12px; }
    .iso-calc__specs-cell-value { font-size: 14px; }
    .iso-calc__slider { padding: 24px 0; margin-top: 20px; }
    .iso-calc__slider-arrow {
        width: 36px;
        height: 36px;
    }
    .iso-calc__slider-arrow--prev { margin-left: 8px; }
    .iso-calc__slider-arrow--next { margin-right: 8px; }
}

/* ===== TITLE & DESCRIPTION ===== */
.iso-calc.section .section__title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.iso-calc.section .section__title-wrapper.center,
.iso-calc.section .section__title-wrapper.center .section__title-text {
    align-items: center;
    text-align: center;
}
.iso-calc.section .section__title-text {
    display: flex;
    flex-direction: column;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0;
    color: #092C47;
}
@media (max-width: 767px) {
    .iso-calc.section .section__title-wrapper h1 {
        font-size: 28px;
    }
    .iso-calc.section .section__title-text {
        font-size: 16px;
        line-height: 24px;
    }
    .iso-calc .faq__title.h2 {
        font-size: 20px;
        line-height: 28px;
    }
}

/* ===== FAQ ===== */
.faq__title.h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    color: #092C47;
    margin-bottom: 16px;
}
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq__item {
    border-radius: 8px;
    background-color: #f6f9ff;
    transition: all ease-in-out 350ms;
}
.faq__item:hover {
    box-shadow: 0px 0px 8px 0px rgba(35, 37, 39, 0.16);
}
.faq__item.opened {
    padding-bottom: 8px;
    box-shadow: none;
}
.faq__item.opened .faq__item-question {
    margin-bottom: 12px;
    padding-bottom: 0;
}
.faq__item.opened .faq__item-question img {
    transform: rotate(0);
}
.faq__item.opened .faq__item-answer-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
}
.faq__item-question {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.faq__item-question img {
    width: 24px;
    height: 24px;
    transition: all ease-in-out 350ms;
    transform: rotate(-180deg);
}
.faq__item-answer-wrapper {
    padding: 0 8px;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition: all ease-in-out 350ms;
    margin: 0;
    width: 100%;
    max-width: 100%;
}
.faq__item-answer {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #000000;
}
.faq__item-title.h3 {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #092C47;
}

@media only screen and (min-width: 577px) {
    .faq__item-title.h3 {
        font-size: 20px;
        line-height: 28px;
    }
    .faq__item-question {
        padding: 16px;
    }
}
@media only screen and (min-width: 720px) {
    .faq__list {
        gap: 24px;
    }
    .faq__item.opened {
        padding-bottom: 16px;
    }
    .faq__item-question {
        padding: 20px;
    }
    .faq__item.opened .faq__item-question {
        margin-bottom: 24px;
    }
    .faq__item-answer-wrapper {
        padding: 0 16px;
    }
    .faq__item-answer {
        gap: 24px;
    }
}
@media only screen and (min-width: 992px) {
    .faq__item.opened {
        padding-bottom: 20px;
    }
    .faq__item-answer-wrapper {
        padding: 0 20px;
    }
}
