:root {
 --primary-color: #2A254B;
 --secondary-color: #F9F9F9;
 --text-color: #2A254B;
 --font-family: 'Roboto', sans-serif;
 --transition: all 0.1s ease;
}

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

button, .button {
    cursor: pointer;
    transition: var(--transition);
}

.button--primary {
    background-color: #4E4D93;
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
}

.button--primary:hover {
    background-color: #4E4D93;
    color: var(--secondary-color);
    border: 2px solid #CAC6DA;
}

.button--primary:focus {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid #CAC6DA;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

a:focus {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.nav__list {
    display: flex;
    margin-top: 2rem;
    gap: 1rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 17px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}
.nav__link:hover,
.nav__link.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.footer__content {
    display: flex;
    margin-top: 2rem;
    gap: 1rem;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.footer__column {
    margin-bottom: 1rem;
}

.header__container {
    display: grid;
    grid-template-columns: repeat(2, 50px) auto repeat(2, 50px);
    justify-items: center;
    align-items: center;
    height: 44px;
}

.header__logo {
    grid-column: 3;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 12px 10px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle__line {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.about__content {
    background-color: var(--primary-color);
    color: var(--secondary-color);;
    display: grid;
    grid-template-columns: auto auto;
    margin-top: 2rem;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.about__description {
    margin-bottom: 1rem;
}

.about__title {
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
}

.features-grid__cards {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    grid-template-rows: auto auto;
    grid-template-areas: 
        "title title title title"
        "content1 content2 content3 content4";
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;  
    justify-items: center;    
    margin-left: auto;       
    margin-right: auto;
}

.section__title {
    grid-area: title;
    margin-bottom: 1rem;
}

.feature__card1 {
    grid-area: content1;
}

.feature__card2 {
    grid-area: content2;
}

.feature__card3 {
    grid-area: content3;
}

.feature__card4 {
    grid-area: content4;
}

.products-grid__cards {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
        "title title title title"
        "content1 content2 content3 content4"
        "button button button button";
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;  
    justify-items: center;    
    margin-left: auto;       
    margin-right: auto;
}

.product__card1 {
    grid-area: content1;
}

.product__card2 {
    grid-area: content2;
}

.product__card3 {
    grid-area: content3;
}

.product__card4 {
    grid-area: content4;
}

.button__product {
    grid-area: button;
}

.newsletter__content {
    display: grid;
    grid-template-rows: auto auto;
    gap: 5rem;
    margin-top: 2rem;
    justify-content: space-around;
    justify-items: center;
}

.newsletter__text {
    text-align: center;
}

.nav__link {
    padding: 2px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    font-family: Material Icons;
    background: var(--primary-color);
    border: 1px solid #CAC6DA;
    transform: scale(1.1);
}
.scroll-top:active {
    transform: scale(0.95);
}

.footer__link {
    padding: 2px;
}

input[type="email"] {
    padding: 10px;
    border: 1px solid #CAC6DA;
    width: 200px;
    transition: var(--transition);;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 1200px) {
    body {
        font-size: 15px;
    }
    
    .features-grid__cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
            "title title"
            "content1 content2"
            "content3 content4";
        gap: 1.5rem;
    }
    
    .products-grid__cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
            "title title"
            "content1 content2"
            "content3 content4"
            "button button";
        gap: 1.5rem;
    }
    
    .about__content {
        gap: 2rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .footer__content {
        gap: 2rem;
        padding: 1.5rem 0;
    }
    
    .newsletter__content {
        gap: 2.5rem;
    }
    
    input[type="email"] {
        width: 280px;
    }
}

@media (max-width: 992px) {
    body {
        font-size: 14px;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .features-grid__cards {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "content1"
            "content2"
            "content3"
            "content4";
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .products-grid__cards {
        grid-template-areas: 
            "title"
            "content1"
            "content2"
            "content3"
            "content4"
            "button";
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .nav__list {
        gap: 1rem;
    }
    
    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .newsletter__content {
        gap: 2rem;
    }
    
    .newsletter__form {
        flex-direction: column;
        align-items: stretch;
    }
    
    input[type="email"] {
        width: 100%;
        max-width: 400px;
    }
    
    .button--primary {
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header {
        background-color: white;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .header__container {
        grid-template-columns: repeat(1, 50px) auto repeat(3, 50px);
    }

    .header__logo {
        grid-column: 2;
        place-items: center;
        margin-left: 100px;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .nav.active {
        right: 0;
    }

    .nav__item {
        width: 100%;
    }

    .nav__link {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    .nav__link:hover,
    .nav__link.active {
        background: transparent;
        color: var(--primary-color);
        padding-left: 10px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1050;
    }
    
    .nav-overlay.active {
        display: block;
    }

    .about__content {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding: 30px;
    }

    .about__image {
        max-width: 100%;
    }
    
    .features-grid__cards {
        gap: 1.25rem;
        max-width: 300px;
    }
    
    .product__card {
        text-align: center;
        height: auto;
        margin-bottom: 1rem;
    }

    .products-grid__cards {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 30px;
        margin-top: 1.5rem;
        justify-items: center;
        align-items: center;  
    }
    
    .product-card__image {
        max-width: 100%;
    }
    
    .section__title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .scroll-top {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }

    .newsletter__content {
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 30px;
    }
    
    .newsletter__text {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    input[type="email"] {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .button--primary {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .footer__content {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .footer__form {
        padding: 30px;
    }

    .footer__list {
        text-align: center;
    }
}

@media (max-width: 426px) {
    body {
        font-size: 13px;
    }
    
    .menu-toggle {
        display: flex; 
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        max-width: 100%;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .about__content {
        gap: 1.5rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .about__image {
        max-width: 100%;
    }

    .feature__card {
        gap: 1.25rem;
        max-width: 100%;
        text-align: center;
    }

    .section__title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .newsletter__content {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .newsletter__text {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    input[type="email"] {
        padding: 10px 16px;
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .button--primary {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .footer__content {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .footer__list {
        text-align: center;
    }
}