@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');
:root {
  --bg-color: #edf3f5;
  --a-color: #fe4040;
  --b-color: #2d3e50;
  --c-color: #fefeff;
  --d-color: #0c0c0c;
  --g-color: #87a4be;
  --f-color: #e4e6e8;
}
body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--d-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.2;
  background: #E3E8FE;
  background: linear-gradient(90deg, rgba(227, 232, 254, 0.33) 0%, rgba(250, 244, 230, 0.33) 52%, rgba(250, 244, 230, 0.33) 100%)
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin: 0 auto;
  letter-spacing: -1.1px
}
ul {
  list-style: none;
  padding: 0
}
ol {
  margin-inline: 45px
}
a {
  text-decoration: none;
  color: var(--d-color)
}
table {
  border-collapse: collapse;
  margin: 0 auto
}
th {
  padding: 20px
}
td {
  padding: 8px;
  text-align: center
}
th {
  background-color: var(--b-color);
  color: var(--c-color)
}
tr:nth-child(even) {
  background-color: var(--f-color)
}
tr:hover {
  background-color: var(--g-color)
}
.container {
  max-width: 1400px;
  padding: 0 40px;
  margin: 0 auto;
  width: 100%;
  flex-grow: 1
}
.footer {
  padding-block: 10px;
  flex-shrink: 0
}
.header {
  background-color: var(--b-color);
  padding-block: 10px;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3)
}
.header_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: var(--c-color)
}
.header_nav_logo {
  display: flex;
  flex-direction: column;
  align-items: center
}
.header_nav_logo>a {
  font-weight: 600;
  font-size: 2rem;
  color: var(--c-color);
}
.header_nav_logo span, sup {
  color: var(--g-color);
}
.copy a {
  text-decoration: underline double .5px;
  text-transform: uppercase
}
.content {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-block: 1rem;
}
.aside {
  flex-basis: 20%;
  font-size: 1.2rem;
  color: var(--b-color);
  margin-top: 35px;
}
.aside_nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 1rem;
  width: 100%
}
.aside_nav_is_active {
  text-decoration: underline dotted 3.5px
}
.aside_nav a:hover {
  font-weight: 600
}
.aside-nav-main {
  display: grid;
  place-items: center
}
.aside-nav-main-svg {
  width: 164px
}
.main {
  flex-basis: 80%
}
.main_article {
  font-size: 1.2rem
}
.main_article a {
  color: var(--g-color);
  text-decoration: underline dotted .5px
}
.main_article_title, .section_title {
  display: flex;
  justify-self: center;
  color: var(--b-color);
  font-size: 1.8rem;
  padding: 0;
}
.list_section li {
  margin-bottom: 18px;
  line-height: 1.6
}
p {
  position: relative;
  text-align: justify;
  text-indent: 30px;
  line-height: 1.6;
  padding-inline: 2rem
}
.card {
  -webkit-transition: -webkit-box-shadow .25s;
  transition: -webkit-box-shadow .25s;
  transition: box-shadow .25s;
  transition: box-shadow .25s, -webkit-box-shadow .25s;
  padding: 24px;
  margin: .5rem 0 1rem 0;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  padding: 2rem
}
.copy {
  color: var(--c-color);
  text-align: center;
  margin-block: 1.5rem
}
.form-group {
  margin-bottom: .8rem
}
.calculator {
  display: flex;
  flex-direction: column;
  padding: 0 2rem 2rem
}
.section-form-calc {
  margin-block: 1rem;
  padding: 2rem;
  border: 1px solid var(--f-color);
  border-radius: 8px
}
.gradient-bg, .section-form-calc {
  background: var(--g-color);
  background: linear-gradient(205deg, rgba(240, 238, 251, .5) 0%, rgba(250, 244, 230, .5) 48%, rgba(227, 232, 254, 0.3) 100%)
}
.gradient-bg:hover {
  transition: .5s ease-in-out;
  background: var(--g-color);
  cursor: pointer
}
.gradient-bg:hover > a {
  color: var(--f-color);
  font-weight: 700;
  text-decoration: none
}
 .wo-margin {
  margin: 0
}
.card-main {
  display: flex;
  flex-direction: column
}
h1, h2, h3, .title-card, .description-card {
  font-family: "Old Standard TT", serif;
  font-style: normal
}
.title-card {
  font-weight: 700;
  font-size: 2rem;
  color: var(--b-color)
}
.description-card, .aside-nav-main > p {
  text-indent: 0;
  line-height: 1.3;
  padding: 0;
  flex: 1
}
.links-card {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}
.links-card > a, .btn {
  background: var(--b-color);
  padding: 8px 15px;
  border-radius: 32px;
  text-decoration: none;
  color: var(--c-color)
}
.links-card > a:hover {
  color: var(--b-color);
  background: var(--c-color);
}
fieldset {
  border: none;
  padding: 0
}
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--g-color);
  border-radius: 8px;
  background-color: var(--c-color);
  font-size: 1rem;
  color: var(--d-color);
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23366da1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px
}
select:focus {
  outline: none;
  border-color: var(--b-color);
  box-shadow: 0 0 0 3px rgba(54, 109, 161, 0.1)
}
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}
.d-none {
  display: none
}
input[type="radio"] {
  display: none;
}
input[type="radio"] + label {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--g-color);
  border-radius: 8px;
  background: var(--c-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  color: var(--d-color);
  flex: 1;
  justify-content: center
}
input[type="radio"]:checked + label {
  background: var(--b-color);
  color: var(--c-color);
  border-color: var(--b-color)
}
input[type="radio"] + label:hover {
  border-color: var(--b-color);
  transform: translateY(-2px)
}
input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--g-color);
  border-radius: 8px;
  background-color: var(--c-color);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--d-color);
  transition: all 0.3s ease;
  box-sizing: border-box
}
input[type="number"]:focus {
  outline: none;
  border-color: var(--b-color);
  box-shadow: 0 0 0 3px rgba(54, 109, 161, 0.1)
}
label, .form-group>span {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 400;
    color: var(--b-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px
}
button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: var(--b-color);
    color: var(--c-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px
}
button[type="submit"]:hover {
    color: var(--g-color);
    transform: translateY(-2px)
}
button[type="submit"]:active {
    transform: translateY(0)
}
.results {
  color: var(--b-color);
  padding: 1.5rem
}
.results>h3 {
  font-size: 1.5rem;
  font-style: italic;
}
.content-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: .5rem
}
.space {
  content: "";
  border-bottom: 1px dashed var(--b-color);
  margin-left: 5px;
  flex-grow: 1
}
table{
  white-space: wrap;
  table-layout: fixed;
  flex: 1;
  border-collapse: collapse;
  border: 1px solid var(--b-color);
  margin-top: .8rem
}
td, th{
  padding: 5px;
  border: 1px solid var(--b-color);
  text-align: center
}
@media (max-width: 992px) {
  .content, .footer_nav {
    flex-wrap: wrap;
    flex-direction: column-reverse
  }
  form {
    padding: 1rem;
    margin: 1rem 0
  }
  .results {
    padding: 1rem
  }
  .content-item {
    font-size: 1rem
  }
  fieldset {
    padding: 1rem
  }
  .radio-group {
    flex-direction: column
  }
  .container {
    padding-inline: 5px
  }
  h1 {
    margin: 0 auto
  }
  .main_article {
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none
  }
  .section-form-calc {
    padding: 0
  }
  .responsive-table thead {
    display: none
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block
  }
  .responsive-table tr {
    margin-bottom: 15px
  }
  .responsive-table td {
    text-align: right;
    padding-left: 50%;
    position: relative
  }
  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    text-align: left
  }
}