:root{
    --bg1: #f6efe9;
    --bg2: #fffaf6;
    --accent: #7b3f00;
    --muted: #6b6b6b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    color: #2b2b2b;
    line-height: 1.6;
    padding: 0;
}

/* Container */
.mainP {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #2b2b2b;
    padding: 10px 15px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    background: #333;
    color: #fff;
    border-radius: 5px;
}

/* Submenu */
.nav-links li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    min-width: 150px;
    border: 1px solid #ccc;
}

.nav-links li:hover > ul {
    display: block;
}

.nav-links li ul li a {
    text-transform: none;
    display: block;
    padding: 10px;
    color: #333;
}

/* Wine section */
.wine-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.wine-content {
    flex: 1 1 300px;
    
}

.wine-content p {
    margin-left: 25px;
    margin-top: 25px;
    font-size: 1rem;
    max-width: 550px;
    color: #444;
}

.img-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 2 1 400px;
    width: 100%;      /* Занимает всю ширину контейнера */
    height: auto;     /* Сохраняет пропорции */
    max-width: 600px; /* Ограничение максимальной ширины, если нужно */
    border-radius: 10px;
    margin-right: 90px;
}

.wine-item {
    flex: 1 1 150px;
    text-align: center;
}

.wine-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.price-info {
    margin-top: 10px;
}

/* Products section */
.products-title {
    font-size: 2rem;
    margin: 50px 0 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    width: 100%;      /* Занимает всю ширину контейнера */
    height: auto;     /* Сохраняет пропорции */
    border-radius: 10px;
}

.products-img img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.products-info {
    text-align: center;
    margin-top: 10px;
}

/* Why us section */
.info-why {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin-top: 50px;
}

.text-column {
    flex: 1 1 100px;
}

.why-img {
    flex: 1 1 100px;
}

.why-img img {
    width: 100%;
    border-radius: 10px;
}

/* Stats section */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer-section {
    background-color: #575757;
    color: #fff;
    padding: 40px 20px;
}

.footer-content h1 {
    margin-bottom: 10px;
}

.social-links a {
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
}

.call-button {
    background-color: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
