:root {
    --default-red: #A52422;
    --second-red: #EE6055;
    --bgc-color-one: #F5F1ED;
    --light-black: #2C2829;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif
}

html {
  scroll-behavior: smooth;
}

li {
    list-style: none;
}

button {
    cursor: pointer;
}

body {
    background-color: var(--bgc-color-one);
    font-size: 20px;
}

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

.container {
    width: 1600px;
    margin: 0 auto;
    padding: 0px 20px;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px
}

.header-logo {
    font-weight: 800;
    font-size: 26px;
}

.header-logo-span {
    color: var(--default-red);
}

.header-list {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.header-list-element {
    margin-left: 48px;
    padding: 5px 0px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.header-base {
    margin: 0;
}

.header-btn {
    background: var(--default-red);
    border: none;
    padding: 12px 30px;
    border-radius: 7px;
}

.first-block-info {
    margin-top: 260px;
}

.first-block-info-h1 {
    font-weight: 700;
    font-style: bold;
    font-size: 46px;
    width: 700px;
}

.first-block-info-about {
    margin-top: 30px;
}

.first-block-info-btn {
    margin-top: 30px;
    padding: 12px 46px;
    border: none;
    border-radius: 7px;
    font-weight: 500;
    font-size: 18px;
    color: black;
    background-color: var(--default-red);
    margin-bottom: 290px;
}

.first-block-info-img {
    position: absolute;
    right: 75px;
    top: 173px;
}

.second-block {
    background-color: var(--second-red);
}

.second-block-title {
    display: flex;
    justify-content: center;
    padding-top: 78px;
    font-size: 22px;
    color: #A62B2F;
}

.second-block-info {
    display: flex;
    justify-content: center;
    padding-top: 36px;
    color: var(--light-black);
    font-weight: 700;
    font-size: 40px;
}

.second-block-choose {
    display: flex;
    justify-content: space-between;
    margin-top: 90px;
}

.second-block-choose-all {
    border: 2px solid white;
    border-radius: 20px;
    text-align: center;
    padding-top: 87px;
    margin-bottom: 130px;
}

.second-block-img {
    background-color: var(--default-red);
    padding: 15px 25px;
    border-radius: 20px;
}

.second-block-choose-title {
    color: var(--light-black);
    font-weight: 700;
    font-size: 20px;
    padding: 29px 80px 20px;
}

.second-block-choose-info {
    color: var(--light-black);
    font-size: 16px;
    margin-bottom: 71px;
}

.third-block {
    position: relative;
}

.third-block-all {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 120px;
}

.third-block-right {
    margin-top: 202px;
}

.third-block-left {
    margin-top: 134px;
    margin-bottom: 134px;
}

.third-block-info {
    color: var(--default-red);
    font-weight: 600;
}

.third-block-title {
    margin-top: 20px;
    font-size: 46px;
    font-weight: 600;
    width: 620px;
}

.third-block-text {
    margin-top: 20px;
    font-weight: 400;
}

.third-block-btn {
    background-color: var(--default-red);
    margin-top: 51px;
    padding: 12px 32px;
    border: none;
    border-radius: 7px;
    font-size: 18px;
}

.four-block {
    background-color: var(--second-red);
}

.four-block-header {
    padding-top: 100px;
    text-align: center;
}

.four-block-info {
    font-size: 22px;
    font-weight: 500;
    color: #A62B2F;
}

.four-block-title {
    padding-top: 36px;
    font-size: 40px;
    font-weight: 700;
    color: var(--light-black);
}

.four-block-main {
    padding-top: 95px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.four-block-main-all {
    flex: 1;
    text-align: center;
}

.four-block-main-score {
    width: 130px;
    height: 130px;
    background-color: #F07775;
    color: #252323;
    border-radius: 16px;
    font-weight: 300;
    font-size: 110px;
    margin: 0 auto;
    user-select: none;
}

.four-block-main-title {
    padding-top: 36px;
    font-size: 28px;
    font-weight: 700;
    color: var(--light-black);
}

.four-block-main-info {
    padding-top: 40px;
    color: var(--light-black);
    font-size: 22px;
}

.four-block-footer-text {
    margin-top: 100px;
}

.four-block-footer-text {
    text-align: center;
    color: #A62B2F;
    font-weight: 500;
    font-size: 22px;
}

.fours-block-footer-title {
    text-align: center;
    margin-top: 36px;
    font-size: 40px;
    font-weight: 700;
    color: var(--light-black);
}

.four-block-footer-choose {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 37px;
}

.four-block-footer-choose-switcher {
    height: 40px;
    width: 120px;
    position: relative;
    border: 1px solid white;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.four-block-footer-choose-switcher-btn {
    height: 90%;
    margin: 0px 2px;
    position: absolute;
    aspect-ratio: 1 / 1;
    background-color: #252323;
    border: none;
    border-radius: 50%;
    transition: 2s;
}

.four-block-footer-choose-all {
    color: var(--light-black);
    font-size: 24px;
    font-weight: 400;
}

.four-block-cards {
    padding-top: 75px;
    padding-bottom: 95px;
    display: flex;
    justify-content: center;
    gap: 70px;
}

.four-block-card {
    flex: 1;
    border: 1px solid white;
    border-radius: 20px;
    padding: 0 60px 0 40px;
}

.four-block-card-price {
    padding-top: 50px;
    font-size: 70px;
    font-weight: 700;
    color: #252323;
    display: flex;
    justify-content: center;
}

.four-block-card-price-span {
    font-size: 24px;
    font-weight: 400;
    color: var(--light-black);
    display: flex;
    align-self:flex-end;
    padding-bottom: 15px;
}

.four-block-card-rate {
    padding-top: 47px;
    color: var(--light-black);
    font-weight: 700;
    font-size: 28px;
}

.four-block-card-text {
    padding-top: 24px;
    font-size: 24px;
    font-weight: 400;
    width: 350px;
    color: var(--light-black);
}

.four-block-card-info-all {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.four-block-card-info {
    padding-top: 38px;
    color: var(--light-black);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.four-block-card-button {
    color: var(--light-black);
    background-color: #F07775;
    padding: 16px 120px;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 28px;
}

.five-block {
    background-color: #F07775;
    font-size: 28px;
    font-weight: 700;
    color: var(--light-black);
}

.five-block-app {
    padding-top: 52px;
}

.five-block-about {
    padding-top: 30px;
}

.five-block-policy {
    padding-top: 30px;
}

.five-block-name {
    padding-top: 30px;
    padding-bottom: 57px;
    font-weight: 400;
    font-size: 28px;
}

.footer-links {
    text-decoration: none;
    color: var(--light-black);
    position: relative;

}

.four-block-card-info::before {
    content: url('./img/bookmark-red.png');
}

.four-block-card-info-white::before {
    content: url("./img/boormark-white.png");
}

.four-block-card-price::before {
    content: '₽';
    font-size: 24px;
}

.btn {
    position: relative;
    z-index: 0;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #ff5f54, #ffa39f);
    box-shadow: 4px 4px 35px 5px rgba(34, 60, 80, 0.3);
    z-index: -1;
    height: 100%;
    width: 0;
    border-radius: 7px;
    transition: 200ms;
}

.btn:hover::after {
    width: 100%;
}

.btn:hover {
    color: wheat;
}

ul li::after {
    content: '';
    position: absolute;
    border-radius: 10px;
    height: 4px;
    width: 0;
    background: linear-gradient(to right, #ff5f54, #d5a19f);
    bottom: 0px;
    left: 0px;
    transition: 100ms;
}

ul li:hover::after {
    width: 100%;
}

.four-block-main-score:hover {
    background-color: #A52422;
    cursor: pointer;
    transition: 500ms;
}

.footer-links::after {
    content: '';
    position: absolute;
    border-radius: 10px;
    height: 4px;
    width: 0;
    background: linear-gradient(to right, var(--light-black), #e56562);
    bottom: 0px;
    left: 0px;
    transition: 100ms;
}

.footer-links:hover::after {
    width: 100%;
}

.smoother {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background-color: white;
    position: fixed;
    right: 30px;
    bottom: 30px;
    opacity: 20%;
    font-size: 40px;
}

.smoother:hover {
    opacity: 100%;
    transition: 0.5s;
}