:root {
    --accent-primary-color: #5CC6B9;
    --font-accent-color: #27A99A;
    --font-primary-color: #101828;
    --main-background-color: #F8F9FC;
    --border-color: #D0D5DD;
    --main-font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul, li, span, h1, h2, button, a {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

p {
    font-family: var(--main-font);
}

header {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1440px;
    padding: 30px 40px;
}

main {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin: 0 auto;
    max-width: 1440px;
    padding: 20px 40px;
}

.select-language {
    display: none;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0px 1px 2px 0px #1018280D;
}

.language-value {
    display: flex;
    align-items: center;
}

.language-value > p {
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--font-primary-color);
    padding-left: 5px;
}

.left-section{
    flex-shrink: 2;
    min-width: 909px;
}

.right-section{
    flex-shrink: 1;
    min-width: 389px;
}

.price {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 24px;
    margin-top: 24px;
}

.info-block {
    display: flex;
    justify-content: space-between;
    gap: 32px
}

.info-title {
    min-width: 588px;
}

.info-title > h1 {
    font-family: var(--main-font);
    font-size: 56px;
    font-weight: 700;
    line-height: 72px;
    color: var(--font-primary-color);
    margin-bottom: 16px;
    max-width: 300px;
}

.info-title > p {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    color: #10182899;
}

.info-today {
    min-width: 319px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 24px;
}

.info-today > h2 {
    font-family: var(--main-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--font-primary-color);
    margin-bottom: 20px;
}

.info__stat-block {
    display: flex;
    justify-content: space-between;
}

.info__stat-block_left > li {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--font-primary-color);
    margin-bottom: 16px;
}

.info__stat-block_right > li {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #10182899;
    margin-bottom: 16px;
    text-align: right;
}

.info__stat-block_right > li:first-child {
    color: var(--font-accent-color);
}

.price-table {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-table > p {
    font-family: var(--main-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--font-primary-color);
}

.price-table > p:last-child {
    color: #10182899;
}

.price-block {
    display: flex;
    justify-content: space-between;
}

.price-block_left > li {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--font-primary-color);
    margin-bottom: 16px;
}

.price-block_right > li {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #10182899;
    margin-bottom: 16px;
}

.calculator-block, .history-block {
    min-width: 939px;
    background-color: var(--main-background-color);
    padding: 24px;
    border-radius: 8px;
}

.history-block {
    margin-top: 24px;
}

form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.calculator-weight, .calculator-purity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-weight > input {
    width: 200px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 16px;
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #10182899;
    background-color: #ffffff;
}

input:focus, select:focus {
    outline: none;
}

label {
    font-family: var(--main-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--font-primary-color);
}

.calculator-unit {
    width: 124px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 16px;
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--font-primary-color);
    background-color: #ffffff;
}

input:focus, select:focus, .calculator-purity > select:focus {
    border: 1px solid var(--font-accent-color);
}

.calculator-purity > select {
    min-width: 320px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 16px;
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--font-primary-color);
    background-color: #ffffff;
}

button {
    min-width: 207px;
    height: 60px;
    background-color: var(--font-accent-color);
    border: none;
    border-radius: 12px;
    padding: 15px 62px;
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #ffffff;
}

button:focus {
    outline: none;
    background-color: var(--accent-primary-color);
}

button:hover {
    background-color: var(--accent-primary-color);
}

.estimate-block {
    padding: 40px 0;
}

.estimate-text {
    font-family: var(--main-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color:#10182899;
    padding-bottom: 16px;
}

.total-value {
    font-family: var(--main-font);
    font-size: 56px;
    font-weight: 700;
    line-height: 72px;
    color: #27A99A;
}

.note {
    font-family: var(--main-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #10182899;
}

.history-block > h3 {
    font-family: var(--main-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--font-primary-color);
    margin-bottom: 16px;
}

.history-block table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
}

.history-block th,
.history-block td {
    width: 25%;
    text-align: center;
    padding: 8px;
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    color: var(--font-primary-color);
}

.history-block thead {
    background-color: var(--font-accent-color);
}

.history-block tbody {
    background-color: #ffffff;
}

.history-block tbody tr td:hover {
    cursor: pointer;
}

.history-block th {
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    color: #ffffff;
}

@media screen and (max-width: 1440px) {
    header {
        max-width: 1000px;
    }
    
    main {
        max-width: 1000px;
        gap: 20px;
    }  
    
    .left-section{
        max-width: 600px;
        min-width: 500px;
    }
    
    .right-section{
        max-width: 300px;
        min-width: 220px;
    }
    
    .info-title {
        max-width: 550px;
        min-width: 400px;
    }
    
    .info-today {
        max-width: 300px;
        min-width: 250px;
    }
    
    .calculator-block, .history-block {
        max-width: 870px;
        min-width: 650px;
    }
    
    .calculator-weight > input {
        max-width: 130px;
        min-width: 80px;
    }
    
    .calculator-unit {
        max-width: 124px;
    }
    
    .calculator-purity > select {
        max-width: 300px;
        min-width: 100px;
    }
    
    button {
        max-width: 180px;
    }
}

@media screen and (max-width: 1000px) {
    header {
        max-width: 750px;
        min-width: 750px;
        padding: 20px 16px;
    }
    
    main {
        flex-direction: column;
        gap: 32px;
        max-width: 750px;
        padding: 16px;
    }
    
    .select-language {
        min-width: 90px;
        padding: 6px 14px;
    }
    
    .language-value > p {
        display: none;
    }
    
    .left-section{
        flex-shrink: 0;
        min-width: 720px;
    }
    
    .right-section{
        flex-shrink: 0;
        min-width: 720px;
    }
    
    .info-block {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px
    }
    
    .info-title {
        min-width: 700px;
    }
    
    .info-title > h1 {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 12px;
        text-align: center;
        white-space: nowrap;
    }
    
    .info-title > p {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }
    
    .info-today {
        min-width: 720px;
        padding: 16px;
    }
    
    .info-today > h2 {
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: 16px;
    }
    
    .info__stat-block_left > li {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
    }
    
    .info__stat-block_right > li {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
    }
    
    .price-table {
        margin-bottom: 16px;
    }
    
    .price-block_left > li {
        font-size: 14px;
        line-height: 20px;
    }
    
    .price-block_right > li {
        font-size: 14px;
        line-height: 20px;
    }
    
    .calculator-block, .history-block {
        max-width: 720px;
        min-width: 500px;
        padding: 16px;
    }

    .history-block {
        margin-top: 24px;
    }
    
    form {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-weight > input {
        min-width: 688px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .calculator-unit {
        min-width: 688px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .calculator-purity > select {
        min-width: 688px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    button {
        min-width: 688px;
        height: 48px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .estimate-block {
        padding: 32px 0;
    }
    
    .estimate-text {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }
    
    .total-value {
        font-size: 48px;
        line-height: 60px;
        text-align: center;
    }
    
    .note {
        text-align: center;
    }
}

@media screen and (max-width: 450px) {
    header {
        max-width: 375px;
        min-width: 375px;
        padding: 20px 16px;
    }
    
    main {
        flex-direction: column;
        gap: 32px;
        max-width: 375px;
        padding: 16px;
    }
    
    .select-language {
        min-width: 81px;
        padding: 6px 14px;
    }
    
    .language-value > p {
        display: none;
    }
    
    .left-section{
        flex-shrink: 0;
        min-width: 343px;
    }
    
    .right-section{
        flex-shrink: 0;
        min-width: 343px;
    }
    
    .info-block {
        flex-direction: column;
        gap: 24px
    }
    
    .info-title {
        min-width: 343px;
    }
    
    .info-title > h1 {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 12px;
        text-align: center;
        white-space: nowrap;
    }
    
    .info-title > p {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }
    
    .info-today {
        min-width: 343px;
        padding: 16px;
    }
    
    .info-today > h2 {
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: 16px;
    }
    
    .info__stat-block_left > li {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
    }
    
    .info__stat-block_right > li {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 12px;
    }
    
    .price-table {
        margin-bottom: 16px;
    }
    
    .price-block_left > li {
        font-size: 14px;
        line-height: 20px;
    }
    
    .price-block_right > li {
        font-size: 14px;
        line-height: 20px;
    }
    
    .calculator-block, .history-block {
        min-width: 343px;
        padding: 16px;
    }

    .history-block {
        margin-top: 24px;
    }
    
    form {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-weight > input {
        min-width: 311px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .calculator-unit {
        min-width: 311px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .calculator-purity > select {
        min-width: 311px;
        height: 44px;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 24px;
    }
    
    button {
        min-width: 311px;
        height: 48px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .estimate-block {
        padding: 32px 0;
    }
    
    .estimate-text {
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }
    
    .total-value {
        font-size: 48px;
        line-height: 60px;
        text-align: center;
    }
    
    .note {
        text-align: center;
    }
}

.description {
    padding: 15px 5px;
    font-size: 16px;
    line-height: 20px;
    font-family: 'Inter';
}

.description h1,h2,h3,h4 {
    padding: 10px 0;
}

table {
    border-collapse: collapse;
    border: 1px solid black;
    margin: 5px;
}

tr,td {
    border: 1px solid black;
    text-align: center;
}
