*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
:root {
    --White: #FFF;    
    --Black: #000;
    --Dark-Electric-Blue: #5E6E85;
    --bg: #1e1e1e;
    --Gunmetal: #253347;
    --Borders: #D8E2E7;
    --Blue: #345FF6;
    --Gradient-2: linear-gradient(90deg, #345FF6 0%, #587DFF 100%);
    --Gradient-1: linear-gradient(290deg, #D6E6FE 0%, rgba(214, 252, 254, 0.00) 100%);

}
body { 
    display: flex; 
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-width: 1440px;
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin: 0 auto;  
    background-color: var(--bg);
}
html {
    font-size: 62.5%; 
    font-style: normal;
    line-height: normal;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}
button {
    cursor: pointer;
    border: none;
}
header,
.header__bg,
.navbar,
.hero,
#advice,
.advice__bg,
#result,
#footer {
    width: 375px;  
}
header,
.hero,
#result,
#advice,
#limit {
    background: var(--White);
}
header {
    position: relative;
    height: 1120px;
    flex-shrink: 0;
}
.header__bg {
    position: absolute;
    top:0;
    left: 0;
    z-index: 1;
    height: 640px;
    flex-shrink: 0;
    border-radius: 0 0 35px 35px;
    background: var(--Gradient-1);
}
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}
.navbar__brand {
    width: 36.719px;
    height: 36.72px;
    flex-shrink: 0;
}
.navbar__brand img {
    width: 100%;
    height: auto;
}
.hero {
    padding: 24px 24px 0 24px;
    z-index: 2;
    position: absolute;
    background-color: transparent;
}
.hero__content--title  {
    width: 327px;
    height: 159px;
    align-self: stretch;
    color: var(--Gunmetal);
    text-align: center;
    font-family: Inter-Bold, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -2.4px;
}
.hero__content--desc {
    margin-top: 24px;
    height: 144px;
    width: 327px;
    color: var(--Dark-Electric-Blue);
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.hero__details {
    margin-top: 48px;
    display: flex;
    width: 328px;
    height: 649px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 16px;
    background: var(--White);
    box-shadow: 16px 32px 56px 0px rgba(143, 174, 207, 0.25);
}
.details__head {
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
    height: 29px;
    width: 253px;
}
.inputs__check {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    height: 31px;
    width: 280px;
}
.metric__inputs,
 .imperial__inputs {
     width: 128px;
     height: 31px;
     display: flex;
     align-items: center;
     gap: 18px;
     flex: 1 0 0;
 }
input[type="number"] {
    height: 100%;
    width: 100%;
    border: none;
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
    opacity: 0.25;
}
input[type='number'] {
    -moz-appearance:textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type="number"]:focus {
    outline: none;
    opacity: 1;
}
.metric__wrapper,
.imperial__wrapper,
input[type='radio'] {
    width: 31px;
    height: 31px;
}
input[type="radio"] {
    position: relative;
    appearance: none;
    width: 31px;
    height: 31px;
    background: white;
    border-radius: 50%;
    border: 1px solid var(--Borders);
}
input[type="radio"]::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    outline: none;
    transition: 0.4s;
}
input[type="radio"]:checked{
    color:rgba(52, 95, 246, 0.15) ;
    border-width: 7.5px;
    background: #345FF6;
    transition: 0.4s;
}
input[type="radio"]:checked::before {
    outline: none;
    color: #345FF6;
}
.metric__inputs--type {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 212px;
    width: 280px;
}
.metric__name,
.imperial__name {
    height: 21px;
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}
.metric__height,
.metric__weight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    height: 98px;
    width: 280px;
}
.metric__input--wrapper {
    display: none;
    padding: 20px 24px;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid #D8E2E7;
    background: var(--White);
    width: 280px;
    height: 69px;
}
.imperial__input--wrapper {
    display: none;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    height: 69px;
    width: 280px;
}

.input__imperial--first,
.input__imperial--second {
    display: flex;
    padding: 20px 24px;
    align-items: flex-start;
    gap: 24px;
    width: 132px;
    flex: 1 0 0;
    border-radius: 12px;
    border: 1px solid var(--Borders);
    background: var(--White);
}
.input__first,
.input__second {
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
    width: 43px;
    height: 29px;
    opacity: 1 !important;
}
.input__quantity {
     color: var(--Gunmetal);
     font-family: Inter-Bold, sans-serif;
     font-size: 24px;
     font-style: normal;
     font-weight: 600;
     line-height: normal;
     letter-spacing: -1.2px;
     height: 29px;
     width: 173px;
 }
.input__unit {
    color: var(--Blue);
    font-family: Inter-Bold, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
    height: 29px;
}
.active--type {
    display: flex;
}

.details__dashboard {
    display: flex;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    border-radius: 16px;
    background: var(--Gradient-2);
    height: 257px;
    width: 280px;
}

.details__start {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}
.details__start--title {
    color: var(--White);
    align-self: stretch;
    height: 29px;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
}
.details__start--desc {
    color: var(--White);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    height: 21px;
}
.dashboard__head {
    align-self: stretch;
    color: var(--White);
    font-family: Inter-Bold, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 8px;
    height: 24px;
    width: 216px;
}
.summary__metric,
.summary__imperial {
    display: none;
    color: var(--White);
    font-family: Inter-Bold, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -2.4px;
    height: 53px;
    width: 100%;
}
.dashboard__desc {
    height: 84px;
    width: 216px;
    align-self: stretch;
    color: var(--White);
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.desc--metric {
    display: none;
    font-family: Inter-Variable, sans-serif;
    font-weight: 700;
}
.desc--imperial {
    display: none;
    font-family: Inter-Variable, sans-serif;
    font-weight: 700;
}
.dashboard__active {
    display: none;
    flex-direction: column;
}
.active--desc {
    display: flex;
}
.active--span {
    display: inline;
}
#result {
    padding-top: 72px;
    padding-bottom: 71.61px;
    position: relative;
}
.img__result {
    display: none;
    width: 85px;
    height: 200px;
    flex-shrink: 0;
    position: absolute;
    top: 13px;
    right: 167px;
    background: url("../../img/p.bmi/pattern-curved-line-left.svg") no-repeat;
    background-size: cover;
}
.result__container {
    display: flex;
    flex-direction: column;
    gap:48px;
    width: 375px;
    height: 744.388px;
    flex-shrink: 0;
}
.result__img {
    width: 375px;
    height: 354.388px;
    flex-shrink: 0;
    background: url("../../img/p.bmi/image-man-eating.webp") no-repeat;
    background-size: cover;
}
.result__content {
    display: flex;
    width: 328px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-right: 23px;
    margin-left: 24px;
}
.result__content--title {
    align-self: stretch;
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -1.6px;
    height: 70px;
    width: 328px;
}
.result__content--desc {
    align-self: stretch;
    color: var(--Dark-Electric-Blue);
    font-family: Inter,sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    height: 240px;
    width: 328px;
}

#advice {
    position:relative;
    height: 879px;
}
.advice__bg {
    height: 879px;
    top: 0;
    left: 0;
    position: absolute;
    opacity: .25;
    background: var(--Gradient-1);
}
.advice__container {
    width: 375px;
    height: 879px;
    flex-shrink: 0;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 1;
    padding: 56px 28.96px 56px 19.04px;
}
.advice__list {
    display: flex;
    width: 327px;
    min-height: 743px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    background-color: transparent;
}
.advice__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    min-height: 221px;
    height: auto;
    width: 327px;
}
.advice__item--icon {
    width: 64px;
    height: 64px;
}
.advice__item--icon img {
    width: 100%;
    height: 100%;
}
.advice__item--title {
    margin-top: 32px;
    color: var(--Gunmetal);
    font-family: Inter-Bold,sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.2px;
}
.advice__item--desc {
    margin-top: 24px;
    color: var(--Dark-Electric-Blue);
    font-family: Inter,sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    min-height: 71px;
    height: auto;
}
#limit {
    padding: 72px 29px 96px 19px;
    height: 1531px;
    position: relative;
}
.img__limit {
    display: none;
    width: 94px;
    height: 122px;
    flex-shrink: 0;
    position: absolute;
    top: 371px;
    left:305px;
    background: url("../../img/p.bmi/pattern-curved-line-right.svg") no-repeat;
    background-size: cover;
}
.limit__container {
    height: 1363px;
    width: 327px;
}
.limit__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;
    height: 211px;
    width: 327px;
    margin-bottom: 56px;
}
.limit__head--title {
    align-self: stretch;
    color: var(--Gunmetal);
    text-align: center;
    font-family: Inter-Bold, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -1.6px;
}
.limit__head--desc {
    align-self: stretch;
    color: var(--Dark-Electric-Blue);
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.limit__item {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border-radius: 16px;
    background: var(--White);
    box-shadow: 16px 32px 56px 0 rgba(143, 174, 207, 0.25);
    width: 327px;
    min-height: 168px;
    height: auto;
    margin-top: 16px;
}
.limit__item--head {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    height: 32px;
}
.limit__item--head div:nth-child(1) {
    width: 32px;
    height: 32px;
}
.limit__item--head div:nth-child(2) {
    flex: 1 0 0;
    width: 231px;
    height: 24px;
    color: var(--Gunmetal);
    font-family: Inter-Bold, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1px;
}
.limit__item--desc {
    align-self: stretch;
    color: var(--Dark-Electric-Blue);
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    min-height: 72px;
    height: auto;
    width: 279px;
}

@media(min-width: 768px){
    header,
    .header__bg,
    .navbar,
    .hero,
    #advice,
    .advice__bg,
    #result,
    #footer {
        width: 768px;
    }
    header {
        height: 821px;
        flex-shrink: 0;
    }
    .hero {
        padding: 40px 43px 0 39px;
    }
    .hero__content--title  {
        width: 686px;
        height: 108px;
    }
    .hero__content--title span {
        display: block;
    }
    .hero__content--desc {
        height: 72px;
        width: 686px;
    }
    .hero__details {
        margin-top: 40px;
        width: 686px;
        height: 467px;
        padding: 32px;
        gap: 32px;
    }
    .inputs__check {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        align-self: stretch;
        width: 622px;
        height: 31px;
    }
    .input__quantity {
        width: 192px;
        height: 29px;
        display: flex;
        align-items: flex-start;
        gap: 24px;
        align-self: stretch;
    }
    #weight__input,
    #height__input {
        width: 192px;
        height: 29px;
    }
    #in__input,
    #ft__input,
    #st__input,
    #lbs__input {
        width: 100%;
    }
    .metric__inputs--type {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        width: 622px;
        height: 98px;
        align-self: stretch;
    }
    .metric__weight {
        width: 299px;
        height: 98px;
    }
    .metric__height {
        width: 299px;
        height: 98px;
        flex-direction: column;
    }
    .metric__input--wrapper {
        width: 299px;
    }
    .input__imperial--second,
    .input__imperial--first {
        width: 141.5px;
    }

    .imperial__input--wrapper {
        width: 299px;
    }
    .dashboard__active {
        flex-direction: row;
    }
    .details__dashboard {
        flex-direction: row;
        height: 149px;
        width: 622px;
        border-radius: 16px 999px 999px 16px;
        background: linear-gradient(90deg, #345FF6 0%, #587DFF 100%);
    }
    .result__container,
    .advice__item div:nth-child(2),
    .advice__item{
        flex-direction: row;
    }
    #advice,
    .advice__bg  {
        height: 503px;
    }
    .advice__container {
        padding: 60px 43px 60px 39px;
    }
    .advice__item {
        display: flex;
        width: 686px;
        align-items: center;
        gap: 40px;
        height: 110px;
        min-height: unset;
    }
    .advice__item--title {
        margin-top: 0;
        height: 29px;
    }
    .advice__item--desc {
        height: 48px;
        width: 582px;
        margin-top: 0;
    }
    #limit {
        height: 1154.91px;
        padding: 96px 43px 95.91px 39px;
    }
    .limit__container {
        height: 963px;
        width: 686px;
    }
    .limit__list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .limit__head {
        height: 139px;
        width: 686px;
    }
    .limit__item {
        min-height: 232px;
        height: auto;
        width: 335.5px;
    }
    .limit__list div:last-child{
        margin: 0 auto;
    }
    #result {
        padding-top: 96px;
        padding-bottom: 96px;
        overflow: hidden;
    }
    .result__container {
        width: 841px;
        height: 411.09px;
        flex-shrink: 0;
        margin-left: -116px;
        gap: 75.04px;
    }
    .result__img {
        margin-left: 74px;
        width: 360.957px;
        height: 411.09px;
        flex-shrink: 0;
        background: url("../../img/p.bmi/Group 35.svg") no-repeat;
        background-position: center right;
        background-size: contain;
    }
    .result__content {
        height: 342px;
        width: 331px;
        margin: 35px 0 34.1px 0;
    }

}
@media(min-width: 1440px){
    header,
    .navbar,
    .hero,
    #advice,
    #result,
    #footer {
        width: 1440px;
    }
    #advice {
        height: 402px;
    }
    .advice__bg {
        width: 1392px;
        height: 402px;
        flex-shrink: 0;
        border-radius: 35px;
        opacity: 0.25;
        background: var(--Gradient-1);
        left:24px;
    }
    .advice__container {
        width: 1392px;
        height: 402px;
        flex-shrink: 0;
        margin-left: 24px;
        padding: 72px 117px 96px 116px;
    }
    .advice__list {
        flex-direction: row;
        width: 1159px;
        height: 234px;
        min-height: unset;
        gap: 32px;
    }
    .advice__item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 365px;
        height: 234px;
        gap: 45px;
        flex-shrink: 0;
    }
    .advice__item--title {
        height: 29px;
        width: 100%;
    }
    .advice__item--desc {
        margin-top: 24px;
        width: 365px;
        height: 72px;
    }
    #result {
        padding-top: 65px;
        padding-bottom: 96px;
    }
    .result__container {
        display: flex;
        width: 1160px;
        height: 533px;
        flex-shrink: 0;
        margin: 0 auto;
        gap: 131px;
        align-items: flex-start;
    }
    .result__img {
        width: 564px;
        height: 533px;
        flex-shrink: 0;
        margin-left: 0;
        background: url("../../img/p.bmi/image-man-eating.webp") no-repeat;
        background-size: cover;
    }
    .result__content {
        display: flex;
        width: 465px;
        height: 309px;
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
        margin-top: 184px;
        margin-bottom: 40px;
    }
    .result__content--desc {
        width: 465px;
        height: 168px;
    }
    .result__content--title {
        font-size: 48px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        letter-spacing: -2.4px;
        width: 465px;
        height: 106px;
    }
    #limit {
        padding: 120px 140px;
        height: 944px;
    }
    .limit__container {
        width: 1160px;
        height: 704px;
        flex-shrink: 0;
        display: flex;
        position: relative;
    }
    .limit__head {
        display: flex;
        width: 564px;
        height: 184px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 35px;
    }
    .limit__head--title {
        text-align: left;
        width: 564px;
        height: 53px;
    }
    .limit__head--desc {
        text-align: left;
        height: 96px;
        width: 564px;
    }
    .limit__list {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 961px;
        height: 704px;
        flex-shrink: 0;
        position: absolute;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 0;
        gap:24px;
    }
    .gender{
        margin: 0 99px 8px 497px;
    }
    .limit__item {
        display: flex;
        width: 365px;
        padding: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 0;
        min-height: unset;
    }
    .age,
    .muscle {
        height: 184px;
    }
   .pregnancy, .race, .gender {
       height: 232px;
   }
    .limit__list div:last-child{
        margin: 0 199px 0 0;
    }
    .limit__item--desc {
        width: 301px;
    }
    .limit__head--title {
        font-size: 48px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        letter-spacing: -2.4px;
    }
    .header__bg {
        width: 978px;
        height: 737px;
        flex-shrink: 0;
        margin-left: 24px;
    }
    .hero {
        display: flex;
        padding-top: 0;
    }
    .hero__content {
        display: flex;
        width: 564px;
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
        height: 271px;
        margin-left: 116px;
        margin-top: 127px;
        margin-right: 32px;
    }
    .hero__content--title {
        font-size: 64px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        letter-spacing: -3.2px;
        height: 140px;
        text-align: left;
    }
    .hero__content--desc {
        margin-top: 0;
        width: 465px;
        height: 96px;
        text-align: left;
    }
    header {
        height: 737px;
    }
    nav {
        margin-top: 75px;
        justify-content: flex-start;
    }
    .navbar__brand {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        margin-left: 144px;
    }
    .hero__details {
        display: flex;
        width: 564px;
        padding: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        height: 484px;
        margin-bottom: 86px;
        margin-top: 27px;
    }
    .details__dashboard {
        display: flex;
        padding: 32px;
        justify-content: center;
        align-items: center;
        gap: 24px;
        width: 500px;
        height: 166px;
        align-self: stretch;
        border-radius: 16px 999px 999px 16px;
        background: linear-gradient(90deg, #345FF6 0%, #587DFF 100%);
    }
    .dashboard__desc,.dashboard__head  {
        width: 206px;
    }
    .summary__metric, .summary__imperial {
        font-size: 64px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        letter-spacing: -3.2px;
    }
    .inputs__check {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        align-self: stretch;
        width: 500px;
        height: 31px;
    }
    .metric__inputs--type {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        align-self: stretch;
        width: 500px;
        height: 98px;
    }
    .metric__height,
    .metric__weight {
        display: flex;
        align-items: flex-start;
        align-self: stretch;
        width: 238px;
        height: 98px;
    }
    .metric__input--wrapper {
        width: 238px;
    }
    .imperial__input--wrapper {
        width: 238px;
    }
    .input__quantity {
        width: 131px;
    }
    .input__imperial--second,
    .input__imperial--first {
        width: 111px;
        padding: 20px 10px;
    }
    .input__first, .input__second, .input__unit {
        width: 20px;
    }
    .header__bg {
        border-radius: 0 0 35px 35px;
        background: var(--Gradient-1, linear-gradient(290deg, #D6E6FE 0%, rgba(214, 252, 254, 0.00) 100%));
    }
    .img__limit, .img__result {
        display: block;
    }

}
