/* ===== VARIABLES ===== */
:root {
    --color-primary: #0a4740;
    --color-secondary: #d4af37;
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-cream: #f5f0e6;
    --color-gray: #666666;
    --color-light-gray: #e0e0e0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn__icon {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn--primary:hover {
    background: transparent;
    color: var(--color-secondary);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn--telegram {
    background: #0088cc;
    color: var(--color-white);
}

.btn--telegram:hover {
    background: #0099e6;
    transform: translateY(-2px);
}

.btn--yandex {
    background: #fc0;
    color: var(--color-black);
}

.btn--yandex:hover {
    background: #ffd633;
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.header__logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 700;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.header__link:hover {
    color: var(--color-secondary);
}

.header__link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
/*
    background-image: url('../images/hero-bg.jpg');
    background-color: #111;
    position: absolute;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    opacity: 0.3;
*/

    min-height: 100vh;
    background: linear-gradient(rgba(10, 71, 64, 0.60), rgba(10, 71, 64, 0.50)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Параллакс-эффект при прокрутке */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

/* Декоративный узор на фоне */
/*.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
*/
/* Орнамент в грузинском стиле (SVG) */
*
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
/*    height: 100px;
    background-image: url("image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%23d4af37' stroke-width='1' opacity='0.2'/%3E%3C/svg%3E");
*/    opacity: 0.3;
    pointer-events: none;
}

/*
.hero__decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}
*/
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero__title-highlight {
    color: var(--color-secondary);
}

.hero__subtitle {
    font-size: 2rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero__text {
    font-size: 1.2rem;
    color: var(--color-cream);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--color-cream);
}

/* ===== ABOUT SECTION ===== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about__placeholder {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 100px 40px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.2rem;
    border: 3px dashed var(--color-secondary);
}

/* ===== MENU SECTION ===== */
.menu__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.menu__category-btn {
    padding: 10px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.menu__category-btn:hover,
.menu__category-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.menu__category {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.menu__category-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
}

.menu__items {
    display: grid;
    gap: 20px;
}

.menu__item {
    background: var(--color-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--color-secondary);
}

.menu__item:hover {
    border-left-color: var(--color-primary);
    background: #fafafa;
}

.menu__item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.menu__item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.menu__item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.menu__item-weight {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.menu__item-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    font-style: italic;
}

/* ===== GALLERY SECTION ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery__item {
    aspect-ratio: 4/3;
    background: var(--color-primary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

/* Убираем заглушки, если фото есть */
.gallery__placeholder {
    display: none;
}

/* ===== REVIEWS SECTION ===== */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-card__author {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-card__date {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-card__text {
    line-height: 1.7;
    color: var(--color-black);
    white-space: pre-line;
}

/* ===== CONTACTS SECTION ===== */
.contacts__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-card {
    background: var(--color-white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-secondary);
}

.contact-card__title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.contact-card__text {
    font-size: 1.1rem;
}

.contact-card__link {
    font-size: 1.3rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.contact-card__link:hover {
    color: var(--color-secondary);
}

.contacts__links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer__logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 700;
}

.footer__text {
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }
    
    .header__nav.active {
        display: flex;
    }
    
    .header__burger {
        display: flex;
    }
    
    .hero__title {
        font-size: 2.8rem;
    }
    
    .hero__subtitle {
        font-size: 1.5rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .about__content,
    .contacts__content {
        grid-template-columns: 1fr;
    }
    
    .menu__item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2.2rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .menu__item {
        padding: 20px;
    }
    
    .menu__item-name {
        font-size: 1.1rem;
    }
    
    .menu__item-price {
        font-size: 1.2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

.menu__nav {
    position: sticky;
    top: 80px; /* отступ под фиксированный хедер */
    z-index: 100;
    background: var(--color-cream);
    padding: 10px 0;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ===== MENU ITEM WITH IMAGE ===== */
.menu__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.menu__item--has-image {
    /* Стили для items с картинкой уже заданы через flex выше */
}

.menu__item-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.menu__item-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.menu__item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu__item-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 71, 64, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.menu__item-image-wrapper:hover .menu__item-image-overlay {
    opacity: 1;
}

.menu__item-image-overlay span {
    font-size: 2rem;
    color: var(--color-secondary);
}

.menu__item-content {
    flex-grow: 1;
    min-width: 0;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-modal__close:hover {
    background: var(--color-secondary);
    transform: rotate(90deg);
}

.image-modal__title {
    padding: 20px 60px 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
    text-align: center;
}

.image-modal__img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ===== RESPONSIVE FOR MENU ===== */
@media (max-width: 768px) {
    .menu__item {
        flex-direction: column;
    }
    
    .menu__item-image-wrapper {
        width: 100%;
        height: 250px;
    }
    
    .menu__item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .image-modal__title {
        font-size: 1.2rem;
        padding: 15px 50px 10px 15px;
    }
    
    .image-modal__close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}