@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300..900&display=swap');

* {
    font-family: Rubik;
    font-size: 18px;
    color: hsl(229, 31%, 21%); 
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}

body {
    padding: 50px 0 0 0;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

.logo-block {
    margin-top: 12px !important;
}

.navbar-nav {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 50px;
    font-size: 18px;
    font-weight: 400;
}

.navbar-item a {
    text-decoration: none;
    color: hsl(229, 31%, 21%);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.5s ease;
}

.navbar-nav button {
    width: 110px;
    height: 40px;
    background-color: hsl(0, 94%, 66%);
    border: 2px solid hsl(0, 94%, 66%);
    border-radius: 5px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    letter-spacing: 2px;
    font-weight: 400;
    transition: color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

.navbar-item a:hover {
    color: hsl(0, 94%, 66%);
}

.navbar-nav button:hover {
    background-color: rgb(255, 255, 255);
    color: hsl(0, 94%, 66%);
    box-shadow: 0 0 15px hsl(0, 94%, 66%);
}

section {
    margin-top: 100px;
}

.section-info {
    margin-top: 60px !important;
}

.section-info h2 {
    font-size: 55px;
}

.section-info p {
    margin-top: 20px;
    font-weight: 400;
    color: hsla(229, 31%, 21%, 0.581);
    width: 480px;
}

.section-info button {
    width: 170px;
    height: 50px;
    margin-top: 20px;
    padding: 3px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    transition: color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

.chrome {
    color: white;
    background-color: hsl(231, 69%, 60%);
}

.fox {
    background-color: hsl(0, 0%, 97%);
    box-shadow: 0 2px 8px hsla(229, 31%, 21%, 0.581);
}

.section-pic {
    position: relative;
}

.section-pic img {
    z-index: 2;
    position: absolute;
}

.section-pic .purple-block {
    position: absolute;
    top: 180px;
    left: 242px;
    width: 600px;
    height: 300px;
    background-color: hsl(231, 69%, 60%);
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    z-index: 1;
}

.chrome:hover {
    background-color:hsl(0, 0%, 100%);
    color: hsl(231, 69%, 60%);
    border: 2px solid hsl(231, 69%, 60%);
}

.fox:hover {
    box-shadow: 0 0 0 hsl(0, 0%, 100%);
    border: 2px solid hsl(229, 31%, 21%);
}


.tabs {
    text-align: center;
    margin-top: 200px;
}

.tabs .row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.tabs p {
    color: hsla(229, 31%, 21%, 0.581);
    margin-top: 30px;
}

.main-tabs {
    margin-top: 30px !important;
}

.main-tabs hr {
    margin-top: 0;
}

.tabs-button-block hr {
    width: 100%;
    height: 5px;
    border: none;
    background-color: hsl(0, 94%, 66%);
    opacity: 0;
    margin-bottom: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.tabs-button {
    width: 100%;
    background-color: white;
    border: none;
    transition: color 0.5s ease;
    margin-bottom: 10px;
}

.tabs-button:hover {
    color: hsl(0, 94%, 66%);
}

.active {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

.tabs-block {
    margin-top: 100px;
    height: 500px;
}

.tab {
    display: none;
}

.activeTab {
    display: block !important;
}

.tab-img-block {
    position: relative;
}

.tab-img-block img {
    z-index: 2;
    position: relative;
    width: 600px;
}

.tab .purple-block {
    position: absolute;
    top: 250px;
    right: 500px;
    width: 600px;
    height: 300px;
    background-color: hsl(231, 69%, 60%);
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    z-index: 1;
}

.tab .tab-info {
    text-align: left;
}

.tab .tab-info button {
    width: 150px;
    height: 50px;
    background-color: hsl(231, 69%, 60%);
    color: hsl(0, 0%, 97%);
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.tab .tab-info button:hover {
    background-color: hsl(0, 0%, 97%);
    color: hsl(231, 69%, 60%);
    border: 2px solid hsl(231, 69%, 60%);
}

.cart-block {
    text-align: center;
    margin-top: 170px;
}

.cart-block .main-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.cart-block p {
    color: hsla(229, 31%, 21%, 0.581);
    margin-top: 30px;
    width: 500px;
}

.cart-row {
    margin-top: 70px !important;
    display: flex;
    justify-content: space-around;
}

.cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-radius: 5px;
    height: 400px;
    padding: 40px 15px 15px 15px;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.385);
}

.cart h3 {
    font-size: 24px;
    margin-top: 30px;
}

.cart p {
    width: 250px;
    margin-top: 10px;
}

.cart hr {
    width: 100%;
    border: none;
    border-top: 5px dotted #000000; /* Толщина и цвет */
    height: 0;
    margin: 20px 0;
}

.cart button {
    width: 90%;
    height: 50px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    color: rgb(255, 255, 255);
    background-color: hsl(231, 69%, 60%);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.cart button:hover {
    background-color: hsl(0, 0%, 97%);
    color: hsl(231, 69%, 60%);
    border: 2px solid hsl(231, 69%, 60%);
}

.firecart {
    margin-top: 50px !important;
}

.operacart {
    margin-top: 100px !important;
}

.answers-section {
    margin-top: 150px !important;
}

.answers-section .row {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.answers-section .section-text {
    color: hsla(229, 31%, 21%, 0.581);
    margin-top: 30px;
    width: 500px;
}

.answers-block {
    margin-top: 30px !important;
    padding: 0 150px !important;
    text-align: left;
}

.answer-block {
    height: 60px;
    transition: height 0.5s ease;
}

.answer-block button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color:hsl(0, 0%, 100%);
    border: none;
    transition: color 0.4s ease;
}

.answer-block button h3 {
    font-size: 22px;
    font-weight: 400;
}

.arrow-block {
    width: 40px;
    height: 40px;
    position: relative;
    transform-origin: center left !important;
    margin-bottom: 8px;
    transition: transform 0.7s ease;
}

.arrow-block hr {
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: hsl(231, 69%, 60%);
    border: none;
    opacity: 1;
    transform: rotate(45deg);
}

.arrow-block .right {
    transform: rotate(-45deg);
    right: 33px;
}

.answer-block button:hover {
    color: hsl(0, 94%, 66%);
}

.answer {
    margin: 40px 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.answer p {
    color: hsla(229, 31%, 21%, 0.581);
}

.more-info-button {
    width: 150px !important;
    height: 50px;
    background-color: hsl(231, 69%, 60%);
    color: hsl(0, 0%, 97%);
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.5s ease, color 0.5s ease;
    margin-top: 20px !important;
}

.more-info-button:hover {
    background-color: hsl(0, 0%, 97%);
    color: hsl(231, 69%, 60%);
    border: 2px solid hsl(231, 69%, 60%);
}

.answerActive {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    max-height: 60px;
}

.email-section {
    height: 400px;
    background-color: hsl(231, 69%, 60%);
    padding: 50px;
}

.email-section .row {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.email-section p {
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 16px;
}

.email-section h2 {
    color: rgb(255, 255, 255);
    margin-top: 30px;
    width: 500px;
}

.email-section form {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-block {
    position: relative;
}

.input-block label {
    display: none;
    position: absolute;
    height: 30px;
    width: 300px;
    background-color: hsl(0, 94%, 66%);
    color: hsl(0, 0%, 100%);
    top: 55px;
    right: 0;
    font-size: 16px;
    padding-top: 4px;
}

.input-block img {
    display: none;
    margin-right: 10px;
}

.errorInput {
    border: 2px solid hsl(0, 94%, 66%) !important;
}

.email-section .email-input {
    width: 300px;
    height: 60px;
    border: none;
    border-radius: 5px;
    padding: 15px;
}

.email-section button {
    height: 60px;
    width: 130px;
    margin-left: 20px;
    border: none;
    border-radius: 5px;
    background-color: hsl(0, 94%, 66%);
    color:hsl(0, 0%, 100%) ;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.email-section button:hover {
    background-color:hsl(0, 0%, 100%);
    color: hsl(0, 94%, 66%);
    border: 2px solid hsl(0, 94%, 66%);
}

footer {
    background-color: hsl(229, 31%, 21%);
    height: 130px;
    padding: 40px 0;
}

footer .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

footer .footer-nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    color: hsl(0, 0%, 100%);
}

footer .navbar ul li a {
    color:hsl(0, 0%, 100%)
}

footer .footer-social {
    display: flex;
    justify-content: end;
    align-items: center;
    text-align: right;
    margin-top: 10px;
}

footer .footer-social a {
    margin-right: 30px;
}

footer .social-block hr {
    width: 50%;
    height: 3px;
    border: none;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    background-color: hsl(0, 94%, 66%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

footer .social-block:hover hr {
    opacity: 1;
    transform: scaleX(1);
}

.menuButton {
    display: none;
}

.mobileLine {
    display: none;
}

.hidden-block {
    width: 100%;
    height: 100%;
    background-color: hsla(229, 67%, 13%, 0.736);
    position: fixed;
    margin-top: -50px;
    z-index: 3;
    display: none;
    justify-content: center;
    align-items: center;
}

.menu {
    width: 60%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu .logo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 300px;
}

.menu .logo img {
    width: 200px;
}

.menu .logo button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
}

.menu .logo button hr {
    height: 3px;
    background-color:hsl(0, 0%, 100%);
    opacity: 1;
    margin: 0;
    transform: rotate(45deg);
    border: none;
}

.menu .logo button .right {
    transform: rotate(-45deg);
    margin-bottom: -2px;
}

.navbar-menu {
    width: 100%;
    text-align: center;
    height: 600px !important;
    text-decoration: none;
    list-style: none;
    margin-left: -40px;
}

.navbar-menu .navbar-item {
    height: 33%;
}

.navbar-menu .navbar-item a {
    font-size: 22px;
    color: white;
    text-decoration: none;
}

@media (max-width: 1500px) {
    .section-pic {
        margin-top: 50px !important;
    }
    .section-pic img {
        width: 500px;
        height: 366px;
    }
    .section-pic .purple-block {
        top: 120px;
        width: 300px;
        height: 300px;
    }
    .navbar-nav {
        gap: 20px;
    }
    .tab-img-block img {
        width: 500px;
    }
    .tab .purple-block {
        top: 200px;
        right: 200px;
        width: 600px;
        height: 190px;
    }
}

@media (max-width: 1000px) {
    * {
        font-size: 18px;
    }
    header .row {
        display: flex;
        justify-content: space-around;
    }
    header .navbar {
        display: none;
    }
    .menuButton {
        display: block;
        width: 60px !important;
        height: 60px !important;
        border: none;
        background-color:hsl(0, 0%, 100%)
    }
    .menuButton hr {
        height: 2px;
        opacity: 1;
        background-color: black;
        border: none;
        margin: 8px 0;
    }
    section {
        margin-top: 50px;
    }
    .section-info {
        display: block;
        margin-top: 20px !important;
        text-align: center;
    }
    .purple-block {
        display: none;
    }
    .section-pic img {
        z-index: 0;
        position: relative;
    }
    .section-info p {
        width: 100%;
        margin-top: 30px;
        text-align: center;
    }
    .buttonBlock {
        display: flex;
        justify-content: center;
    }
    .section-pic img {
        width: 100%;
        height: 100%;
    }
    .tabs {
        margin-top: 0;
    }
    .tabs-button-block {
        margin-top: 10px !important;
    }
    .tabs-button-block .mobileLine {
        display: block;
        height: 2px;
        opacity: 0.25;
        background-color: black;
        border: none;
        transform: scaleX(1);
    }
    .tab-img-block img {
        width: 80%;
        z-index: 0;
        position: relative;
    }
    .tab .tab-info {
        text-align: center;
        margin-top: 40px;
    }
    .tab {
        min-height: 750px;
    }
    .cart-block {
        margin-top: 150px;
    }
    .cart-row {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .cart {
        width: 50% !important;
    }
    .operacart {
        margin-top: 50px !important;
    }
    .answers-block {
        padding: 0 20px !important;
    }
    .answer-block button h3 {
        font-size: 20px;
        text-align: left;
        width: 80%;
    }
    .email-section form {
        flex-direction: column;
    }
    .email-section button {
        width: 80%;
        margin-left: 0 !important;
        margin-top: 70px;
    }
    .input-block label {
        top: 84px;
    }
    .email-section {
        height: 500px;
    }
    .input-block {
        width: 80%;
    }
    .email-section .email-input {
        width: 100%;
    }
    .email-section label {
        width: 100%;
        height: 50px;
    }
    footer .navbar-nav {
        flex-direction: column !important;
        align-items: center;
    }
    footer .row {
        flex-direction: column;
        align-items: center;
    }
    footer {
        height: 330px;
        padding: 40px 0;
    }
    .footer-nav {
        align-items: center;
        justify-content: center !important;
    }
    footer .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

    footer .social-block {
        margin-left: 20px;
    }
}