/* CSS Variables */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #9a0007;
    --secondary-color: #ffa726;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --container-width: 1140px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.navbar__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all var(--transition-speed);
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.navbar__link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition-speed);
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.navbar__link:hover {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__rating {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-dark);
}

.rating__stars {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.rating__score {
    font-weight: 700;
    font-size: 1.25rem;
}

.rating__count {
    color: var(--text-light);
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    display: inline-block;
    border: 2px solid transparent;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}

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

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

/* Services Section */
.services {
    background: var(--bg-gray);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card__text {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
}

.feature__icon {
    font-size: 2rem;
}

.feature__text {
    font-weight: 600;
    color: var(--text-dark);
}

.about__image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.about__image:hover img {
    transform: scale(1.05);
}

/* Menu Section */
.menu {
    background: var(--bg-gray);
}

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

.menu-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-item__image {
    height: 250px;
    overflow: hidden;
}

.menu-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.menu-item:hover .menu-item__image img {
    transform: scale(1.1);
}

.menu-item__name {
    font-size: 1.375rem;
    font-weight: 600;
    padding: 20px 20px 12px;
    color: var(--text-dark);
}

.menu-item__description {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.menu__price-info {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-speed);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-speed);
    border-radius: 4px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

/* Reviews Section */
.reviews {
    background: var(--bg-gray);
}

.reviews__summary {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.rating-summary {
    text-align: center;
}

.rating-summary__score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-summary__stars {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 8px 0;
}

.rating-summary__count {
    color: var(--text-light);
    font-size: 1rem;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar__label {
    min-width: 30px;
    font-weight: 500;
}

.rating-bar__track {
    width: 200px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: var(--secondary-color);
    transition: width 1s ease;
}

.rating-bar__count {
    min-width: 30px;
    text-align: right;
    color: var(--text-light);
}

.reviews__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 40px 0;
    scroll-snap-type: x mandatory;
}

.reviews__slider::-webkit-scrollbar {
    height: 8px;
}

.reviews__slider::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.reviews__slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.review-card {
    flex: 0 0 350px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-card__rating {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.review-card__date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-card__text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.review-card__badge {
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.review-card__service {
    color: var(--text-light);
    font-size: 0.875rem;
}

.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.reviews__btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-speed);
}

.reviews__btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Contact Section */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: var(--border-radius);
}

.info-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.info-card__text {
    color: var(--text-light);
    line-height: 1.8;
}

.info-card__phone {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.info-card__phone:hover {
    text-decoration: underline;
}

.info-card__link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.info-card__link:hover {
    text-decoration: underline;
}

.info-card__note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 8px;
}

.opening-hours__day {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.opening-hours__day:last-child {
    border-bottom: none;
}

.opening-hours__day--closed {
    color: var(--text-light);
}

.opening-hours__label {
    font-weight: 500;
}

.opening-hours__time {
    color: var(--text-light);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.contact__map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer__logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer__link:hover {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reviews__summary {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }

    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

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

    .review-card {
        flex: 0 0 280px;
    }

    .rating-bar__track {
        width: 150px;
    }

    .footer__content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 12px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .rating {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .review-card {
        flex: 0 0 260px;
    }
}