@import "./reset.css";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');


html {
    font-size: 16px;
    transition: font-size 0.2s ease;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Стили для навигации сайта */


.header {
    padding: 20px 0; 
    background-color: #000;
}

.header a {
    color: #fff;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.container--header {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 0; 
}

.nav-list {
    display: flex;
    column-gap: 24px;
    font-size: 16px; 
}


.nav-list__link_active:hover {
    color: #fdc700;

}

.phone {
    display: inline-block;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 15px;

}

.phone__content {
    color: black;
    font-size: 16px;

}

/* Отступы для разделов */

.section {
    padding: 80px 0;
}

/* Главный экран */

.main-hero {
    min-height: 75vh; 
    background-image: url("../img/header/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.main__content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px; 
}

.main__title {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 800;
}

.button {
    background: #fdc700;
    border-radius: 20px;
    color: #000;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.button--huge {
    padding: 16px 32px;
    font-size: 1.0625rem; 
}

.button:hover {
    background: #e6b800;
}

.logo img {
    max-width: 140px;
    height: auto;
    display: block;
}


/* Стили для раздела Товары */

.section__title {
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.section__header {
    margin-bottom: 40px;
}

.section__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.title-2 {
    font-size: 1.5rem;
}

.card {
    border: 1px solid #000;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
    background: #fff;
}
.card img {
    width: 100%;
    height: 200px; 
    margin-bottom: 16px;
    object-fit: cover;
    border-radius: 10px;
}

.card--price {
    font-size: 1.125rem; /* было 1.25rem */
    font-weight: 800;
    margin-bottom: 12px;
}

.card--title {
    font-size: 1rem; /* было 1.125rem */
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.button--card {
    background: rgb(253, 199, 0);
    border: none;
    border-radius: 8px;
    color: black;
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    cursor: pointer;
}
.button--card:hover {
    background: #e6b800;
}

/* Стили для раздела Доставка */

.delivery {
    padding: 72px 0;
    background-image: url("../img/header/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.delivery__title {
    font-size: 1.75rem; /* было 2rem */
    margin-bottom: 48px; /* было 70px */
    color: #fdc700;
}

.delivery__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.delivery-card {
    background: #fdc700;
    padding: 32px 24px; /* было 40px 25px */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.delivery-card img {
    width: 72px; /* было 100px */
    height: 72px;
    object-fit: contain;
    margin-bottom: 20px;
}

.delivery-card__title {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 14px;
}

.delivery-card__text {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.55;
    font-weight: 500;
}

/* Раздел Контакты */
.contacts {
    padding: 72px 0;
    background-color: #fff;
}

.contacts__title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 48px;
}

.contacts__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.contacts__info {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contacts__item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.contacts__item-title {
    font-size: 1.0625rem; /* 17px */
    margin-bottom: 6px;
}

.contacts__item-text {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.contacts__map {
    flex: 1;
    min-width: 280px;
}

.contacts__map-title {
    font-size: 1.0625rem;
    margin-bottom: 16px;
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
}


/* Стили для футера */
.footer {
    background-image: url("../img/header/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
     padding: 40px 0;
    color: #fff;
    text-align: center;
}

.footer__sections {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.footer__section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fdc700;
}

.footer__nav-list {
    font-size: 0.9375rem;
}

.footer__nav-link {
    margin-bottom: 8px;
}

.footer__contact-text {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Корзина */
.cart-icon {
    width: 44px; /* было 80px — это главная проблема огромного вида */
    height: 44px;
    margin-right: 6px;
    filter: brightness(0.8) saturate(1.2);
    transition: filter 0.3s ease;
}

.cart-count {
    font-size: 17px; /* было 25px */
    vertical-align: top;
}
