/* Общие стили */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: #4a2c2a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: #8b4513;
}

a:hover {
    color: #6a340f;
}

.btn {
    display: inline-block;
    background-color: #8b4513;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #6a340f;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 2em;
    color: #4a2c2a;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #4a2c2a;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #8b4513;
}

/* Hero Section */
.hero-section {
    background: url('https://via.placeholder.com/1920x800/d2b48c/ffffff?text=Фоновое+изображение+кофейни') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #555;
}

/* Menu Section */
.menu-section {
    background-color: #f2f2f2;
    padding: 80px 0;
    text-align: center;
}

.menu-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
}

.menu-item h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #4a2c2a;
}

.menu-item p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.menu-item .price {
    font-weight: bold;
    color: #8b4513;
    font-size: 1.2em;
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* Hours Section */
.hours-section {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hours-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.hours-section ul {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.hours-section ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    color: #555;
}

.hours-section ul li:last-child {
    border-bottom: none;
}

.hours-section ul li span {
    font-weight: 600;
    color: #4a2c2a;
}

/* Contact Section */
.contact-section {
    background-color: #f2f2f2;
    padding: 80px 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.map-container {
    margin-top: 40px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #e0e0e0;
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-style: italic;
    font-size: 1.2em;
    text-align: center;
    width: 80%;
}

/* Footer */
footer {
    background-color: #4a2c2a;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d2b48c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero-section {
        padding: 100px 20px;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item .price {
        position: static;
        display: block;
        text-align: right;
        margin-top: 10px;
    }

    .map-container {
        padding-bottom: 75%; /* Adjust for smaller screens if needed */
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }

    nav ul li {
        margin: 0 5px 10px 5px;
    }

    .hero-section h2 {
        font-size: 2em;
    }

    .about-section h2, .menu-section h2, .hours-section h2, .contact-section h2 {
        font-size: 2em;
    }
}
