@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* переменные */
:root {
    --color-primary: #2A254B;
    --color-secondary: #4E4D93;
    --color-text: #2A254B;
    --color-text-gray: #505977;
    --color-bg-light: #F9F9F9;
    --color-bg-beige: #FAF4F0;
    --color-white: #FFFFFF;
}
/* базовые стили */ 
* {
    margin: 0;
    padding: 0;
}


/* плавный скролл */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: 0.3s ease-out; 
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}


/* кнопки */

.button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    transition: 0.3s ease-out;
}

.button:hover {
    background: var(--color-secondary);
}

.button:active {
    transform: scale(0.96);
}

.button--light {
    background: var(--color-bg-light);
    color: var(--color-text);
}

.button--light:hover {
    background: #e8e8e8;
}

.button--white {
    background: var(--color-white);
    color: var(--color-primary);
}

.button--white:hover {
    background: var(--color-bg-light);
}


/* хедер */

.header {
    margin: 0 auto;
    padding: 0 24px;
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #EBE8F4;
}

.header__search img {
    width: 16px;
    opacity: 0.7;
}

.header__search:hover img {
    opacity: 1;
}

.header__logo {
    font-size: 24px;
}

.header__logo:hover {
    color: var(--color-secondary);
}

.header__actions {
    display: flex;
    gap: 16px;
}

.header__actions img {
    width: 16px;
    opacity: 0.7;
}

.header__actions a:hover img {
    opacity: 1;
}
/* навы */
.nav__list {
    display: flex;
    justify-content: center;
    gap: 44px;
    padding: 20px 0;
}

.nav__link {
    color: var(--color-text-gray);
    padding: 8px 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    transition: 0.3s ease-out;
}

.nav__link:hover {
    color: var(--color-primary);
}

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


/* главный баннер */
.hero {
    display: flex;
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.hero__content {
    flex: 1;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px;
    display: flex;
    flex-direction: column;
}

.hero__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 40px;
}

.hero__content .button {
    background: rgba(255, 255, 255, 0.15);
    align-self: flex-start;
    margin-bottom: 140px;
}

.hero__content .button:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.hero__text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
}



/* особенности */

.features {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.features__title {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
}

.features__list {
    display: flex;
    gap: 20px;
}
.feature {
    flex: 1;
    background: var(--color-bg-light);
    padding: 48px 32px;
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature__icon {
    width: 24px;
    margin-bottom: 16px;
}

.feature__title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

.feature__text {
    color: var(--color-text-gray);
}


/* товары */

.products {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.products__title {
    font-size: 32px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 32px;
}

.products__list {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}


/* карточки */
.card {
    flex: 1;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card__image {
    width: 100%;
    height: 375px;
    object-fit: cover;
    margin-bottom: 24px;
    transition: 0.3s;
}

.card:hover .card__image {
    transform: scale(1.02);
}

.card__title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.card__price {
    font-size: 18px;
}

.card--large {
    flex: 2;
}

.card--large .card__image {
    height: 462px;
}
/* популярные товары */
.popular {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.popular__title {
    font-size: 32px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 32px;
}

.popular__list {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.popular__list .card__image {
    height: 400px;
}


/* рассылка*/

.newsletter {
    background: var(--color-bg-light);
    padding: 40px 60px;
    text-align: center;
}
.newsletter__inner {
    background: var(--color-white);
    padding: 80px 60px;
}

.newsletter__title {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.newsletter__text {
    color: var(--color-text-gray);
    max-width: 800px;
    margin: 0 auto 32px;
}

.newsletter__form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter__input {
    width: 100%;
    background: var(--color-bg-light);
    padding: 16px 20px;
    font-size: 16px;
    outline: 2px solid transparent;
    transition: 0.3s ease-out;
}
.newsletter__input::placeholder {
    color: var(--color-text-gray);
}

.newsletter__input:hover {
    outline: 2px solid var(--color-primary);
}


/* статья */

.story {
    display: flex;
    max-width: 1280px;
    margin: 60px auto 0;
    padding: 0 24px;
    gap: 16px;
}
.story__content {
    flex: 1;
    padding: 60px 40px;
}

.story__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 24px;
}

.story__text {
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.story__content .button {
    margin-top: 24px;
}

.story__image {
    flex: 1;
    object-fit: cover;
}


/*футер */

.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 24px;
    margin-top: 60px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.footer__nav {
    display: flex;
    gap: 80px;
}

.footer__heading {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    font-size: 14px;
    opacity: 0.8;
}

.footer__list a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__form {
    display: flex;
    margin-top: 16px;
}

.footer__input {
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    min-width: 250px;
}

.footer__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer__line {
    max-width: 1280px;
    margin: 40px auto;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.footer__bottom p {
    font-size: 14px;
}

.footer__socials {
    display: flex;
    gap: 24px;
}

.footer__socials img {
    width: 24px;
    transition: 0.3s ease-out;
}

.footer__socials a:hover img {
    opacity: 1;
    transform: scale(1.10);
}
