@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Medium.woff') format('woff');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic.woff') format('woff');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.woff') format('woff');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --bg-color: #fff;
    --text-color: #222;
    --product-card-bg: #fff;
    --text-color-minor: #5a5a5a;
    --bg-color-minor: #eeeeee;
    --text-color-disabled: #7a7a7a;
}

body.dark {
    --bg-color: #444;
    --text-color: #fff;
    --product-card-bg: #555;
    --text-color-minor: #949494;
    --bg-color-minor: #777;
    --text-color-disabled: #6d6d6d;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3, color 0.3s;
    padding: 16px 8%;
    text-wrap: balance;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 500;
    gap: 2rem;
}

.left-nav button {
    background-color: var(--bg-color);
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #FF0033;
    transition: 0.3s;
}

.btn-cta-small {
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 10rem;
    border: 0px;
    color: #fff;
    background-color: #FF0033;
}

.btn-cta-small:hover {
    transition: 0.3s;
    color: #fff;
    background-color: #e4002e;
}

.btn-cta {
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1.25rem;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 10rem;
    border: 0px;
    color: #fff;
    background-color: #FF0033;
}

.btn-cta:hover {
    transition: 0.3s;
    color: #fff;
    background-color: #e4002e;
}

.btn-how {
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1rem;
    font-weight: 500;
    padding: 18px 28px;
    border-radius: 10rem;
    border: 0px;
    color: var(--text-color-minor);
    background-color: #fff;
}

.btn-how:hover {
    transition: 0.3s;
    color: var(--text-color-minor);
    background-color: #f0f0f0;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    align-items: center;
    box-shadow: 0 8px 24px #f0f0f0;
    border-radius: 10rem;
}

h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin: 0;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

h3 b {
    color: #FF0033;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color-minor);
    margin: 0;
    max-width: 60ch;
}

.models-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    padding: 1rem;
}

.hero {
    height: 88vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.product-card {
    display: flex;
    max-width: 100%;
    padding: 16px 24px;
    border-radius: 1rem;
    box-shadow: 0 8px 24px #f0f0f0;
    background-color: var(--bg-color);
    gap: 1rem;
}

.product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 1rem;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.product-info dl {
    display: flex;
    gap: 1rem;
}

.params-row {
    display: flex;
    gap: 0.5rem;
}

.params-row dt {
    font-weight: 500;
}

.params-row dd {
    margin: 0;
}

.btn-card {
    width: fit-content;
    text-decoration: none;
    font-family: 'Montserrat';
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 10rem;
    border: 0px;
    color: #fff;
    background-color: #FF0033;
}

.btn-card:hover {
    transition: 0.3s;
    background-color: #e4002e;
    color: #ffffff;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.how-card {
    display: flex;
    flex-direction: column;
    padding: 24px 32px;
    border-radius: 1rem;
    box-shadow: 0 8px 24px #f0f0f0;
    background-color: var(--bg-color);
}

.link-bot {
    text-decoration: none;
    color: #FF0033;
}

ol {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 80ch;
}

.info ol {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.calc {
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}

.calc-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin-top: 1rem;
    padding: 24px 32px;
    gap: 1rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px #f0f0f0;
    background-color: var(--bg-color);
}

.calc-form button {
    width: fit-content;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Montserrat';
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 10rem;
    border: 0px;
    color: #fff;
    background-color: #FF0033;
}

.calc-form button:hover {
    transition: 0.3s;
    color: #fff;
    background-color: #e4002e;
}

label {
    font-weight: 500;
    font-size: 1.25rem;
}

input[type="checkbox"] {
    width: 1rem;
    cursor: pointer;
    accent-color: #FF0033;
}

input,
option {
    font-family: 'Montserrat';
    font-size: 1rem;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    background-color: var(--bg-color-minor);
}

textarea {
    font-family: 'Montserrat';
    font-size: 1rem;
    border: none;
    resize: none;
    padding: 1rem;
    overflow-y: hidden;
    min-height: 32px;
    height: auto;
    border-radius: 1rem;
    background-color: var(--bg-color-minor);
}

:disabled {
    color: var(--text-color-disabled);
}

select {
    appearance: none;
    background-image: url('images/down.svg');
    background-repeat: no-repeat;
    color: var(--text-color);
    background-position: right 20px center;
    background-size: 1rem;
    padding-right: 45px;
    font-size: 1rem;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    background-color: var(--bg-color-minor);
}

optgroup {
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 1rem;
}

.calc-result {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    padding-top: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-color-minor);
}

.neuron {
    color: #FF0033;
}

.neuron-res {
    font-weight: 500;
    font-size: 1.25rem;
}

.rub-res {
    font-size: 0.85rem;
}

footer {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.who {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    gap: 0.5rem;
}

.public {
    display: flex;
    justify-content: center;
}

footer ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    font-weight: 500;
    gap: 1rem;
}