/* Базовый сброс и бокс-модель */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Типографика */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #a52a2a;
    margin: 15px auto 30px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.highlight {
    font-size: 1.2rem;
    color: #a52a2a;
    font-style: italic;
    border-left: 4px solid #d4a574;
    padding-left: 20px;
}

/* Кнопки */
.btn-hero, .btn-form, .btn-nav {
    display: inline-block;
    padding: 15px 35px;
    background-color: #a52a2a;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.btn-hero:hover, .btn-form:hover {
    background-color: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(165, 42, 42, 0.2);
}

.btn-nav {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid #a52a2a;
    color: #a52a2a;
    margin-left: 20px;
}

.btn-nav:hover {
    background-color: #a52a2a;
    color: white !important;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #2c1810;
}

.logo span {
    color: #a52a2a;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: #a52a2a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2c1810;
    cursor: pointer;
}

/* Главный экран */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-family: 'Cormorant Garamond', serif;
    color: #d4a574;
    margin-bottom: 25px;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Обо мне */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.about-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; 
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.3s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-text {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Индивидуальный подход */

.approach-images {
    flex: 2 1 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.5px;
}

/* Меню */
.menu-category {
    background: #fff9f0;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.menu-category h3 {
    color: #a52a2a;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.menu-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.menu-row {
    display: contents;
}

.menu-row.header {
    font-weight: 700;
    background-color: #2c1810;
}

.menu-dish, .menu-weight, .menu-price {
    padding: 18px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.menu-dish {
    grid-column: 1;
    background-color: #fff;
}

.menu-weight {
    grid-column: 2;
    justify-content: center;
    background-color: #f9f9f9;
}

.menu-price {
    grid-column: 3;
    justify-content: center;
    background-color: #f9f9f9;
}

.menu-row:nth-child(even) .menu-dish {
    background-color: #fcfcfc;
}

.menu-note {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 25px;
    font-style: italic;
}

/* Контакты */
.contact-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #a52a2a;
}

.contact-info {
    background: #fff9f0;
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 {
    color: #2c1810;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a574;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 12px;
    color: #a52a2a;
    width: 20px;
}

.social-links {
    margin: 25px 0;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.8rem;
    color: #555;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #a52a2a;
}

.form-note {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    margin-top: 15px;
}

.phone-link {
    color: #2c1810;
    text-decoration: none;
    transition: color 0.3s;
}

.phone-link:hover {
    color: #a52a2a;
    text-decoration: underline;
}

/* Футер */
.footer {
    background-color: #2c1810;
    color: #d4a574;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
    }
    
    .about-img {
        max-width: 100%;
        margin: 0 auto;
        padding-bottom: 100%;
    }
    
    .about-text {
        padding: 0;
    }

    .approach-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu li {
        margin: 15px 0;
    }
    .btn-nav {
        margin-left: 0;
        margin-top: 10px;
    }
    .hamburger {
        display: block;
    }
    .menu-table {
        display: block;
        overflow-x: auto;
    }
    .menu-row {
        display: flex;
        border-bottom: 1px solid #eee;
    }
    .menu-dish, .menu-weight, .menu-price {
        padding: 12px;
        border: none;
        justify-content: flex-start;
    }
    .menu-weight, .menu-price {
        min-width: 80px;
        justify-content: center;
    }

    .approach-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .approach-text,
    .approach-images {
        max-width: 100%;
        width: 100%;
    }
    .approach-images {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .image-caption {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-text {
        font-size: 1.1rem;
    }
    .section {
        padding: 80px 0;
    }
    .contact-wrapper {
        gap: 40px;
    }
}