/* Обнуление отступов и box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2d2d2d;
    line-height: 1.6;
    background-color: #fafafa;
}

/* Контейнер для центрирования содержимого */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2d2d2d;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav__link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    transition: color 0.2s;
}

.nav__link:hover {
    color: #b88b5e;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('./images/phon-hero.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 150px 0;
}

.hero__container {
    max-width: 800px;
}

.hero__title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero__button {
    display: inline-block;
    background-color: #b88b5e;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 42px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__button:hover {
    background-color: #a07448;
}

/* ========== CATALOG ========== */
.catalog {
    padding: 80px 0;
    background-color: #ffffff;
}

.catalog__title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #2d2d2d;
}

.catalog__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Карточка товара */
.product-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    flex: 1 1 300px;           /* минимальная ширина 300px, может растягиваться */
    max-width: 350px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-card__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.product-card__title {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: #2d2d2d;
}

.product-card__description {
    font-size: 15px;
    color: #555;
    margin: 0 20px 15px;
    flex-grow: 1;              /* чтобы цена была внизу */
}

.product-card__price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #b88b5e;
    margin: 0 20px 20px;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #2d2d2d;
    color: #f0f0f0;
    padding: 30px 0;
    text-align: center;
}

.footer__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__copyright {
    font-size: 14px;
    opacity: 0.8;
}
