/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-red: #A41515;
    --color-gold: #ECC878;
    --color-black: #121212;
    --color-white: #FFFFFF;
    --color-dark-gray: #1a1a1a;
    --color-light-gray: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Viewport meta tag support */
@supports (-webkit-touch-callout: none) {
    body {
        /* iOS specific fixes */
        -webkit-text-size-adjust: 100%;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-red) 100%);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(164, 21, 21, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    gap: 10px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(236, 200, 120, 0.5));
    flex-shrink: 0;
}

.logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(236, 200, 120, 0.5);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo span {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 40px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Mobile Menu Toggle (для будущего гамбургер-меню) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-gold);
    color: var(--color-black);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-black) 100%);
    background-image: url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(164, 21, 21, 0.7) 0%, rgba(18, 18, 18, 0.8) 100%);
    z-index: 0;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('images/hero-background-mobile.webp');
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(1px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(236, 200, 120, 0.8);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-gold);
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-gold);
    color: var(--color-black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--color-gold);
    animation: fadeInUp 1s ease 0.4s both;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Touch-friendly размер */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 200, 120, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

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

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

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-gold);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-red);
}

/* Philosophy Section */
.philosophy {
    background: var(--color-dark-gray);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.menu-item {
    background: var(--color-light-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 40px rgba(236, 200, 120, 0.3);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-red), var(--color-black));
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h3 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.menu-item p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.menu-item-price {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Touch-friendly размер */
}

.add-to-cart:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.add-to-cart:active {
    transform: scale(0.98);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--color-dark-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--color-red);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--color-gold);
    transform: scale(1.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Reviews */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--color-gold);
}

.review-author {
    color: var(--color-gold);
    font-weight: bold;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--color-dark-gray);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid var(--color-light-gray);
    padding-top: 2rem;
    color: #888;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark-gray);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    border-top: 3px solid var(--color-gold);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--color-gold);
    color: var(--color-black);
}

.cookie-accept:hover {
    background: var(--color-red);
    color: var(--color-white);
}

.cookie-info {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.cookie-info:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--color-light-gray);
    border: 2px solid var(--color-dark-gray);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Cart */
.cart-summary {
    background: var(--color-dark-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
    display: flex;
    justify-content: space-between;
}

/* Product Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h2 {
    color: var(--color-gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    color: var(--color-gold);
    margin: 1.5rem 0;
}

.product-description {
    margin: 2rem 0;
    line-height: 1.8;
}

.product-details {
    background: var(--color-dark-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.product-details h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-dark-gray);
    padding: 3rem;
    border-radius: 15px;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--color-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--color-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive - Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
        font-size: 0.95rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .reviews {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Responsive - Mobile and Small Tablets (до 768px) */
@media (max-width: 768px) {
    /* Header и Navigation */
    header {
        padding: 1rem 0;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    nav ul li {
        flex: 1 1 auto;
        min-width: fit-content;
    }
    
    nav a {
        display: block;
        padding: 0.5rem 0.8rem;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .logo span {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .cart-icon {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
    }
    
    .btn-secondary {
        margin-left: 0 !important;
    }
    
    /* Sections */
    section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Philosophy */
    .philosophy {
        padding: 2rem 1.5rem;
    }
    
    .philosophy p {
        font-size: 1rem;
    }
    
    /* Menu Grid */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-item {
        max-width: 100%;
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    /* Reviews */
    .reviews {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Product Detail */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    /* Cart */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item > div {
        width: 100%;
    }
    
    .cart-total {
        font-size: 1.3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 2rem 1.5rem;
    }
}

/* Responsive - Small Mobile (до 480px) */
@media (max-width: 480px) {
    /* Header */
    .logo span {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .logo img {
        height: 30px;
    }
    
    nav ul {
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Menu Items */
    .menu-item-content {
        padding: 1.2rem;
    }
    
    .menu-item h3 {
        font-size: 1.1rem;
    }
    
    .menu-item-price {
        font-size: 1.3rem;
    }
    
    /* Product */
    .product-info h2 {
        font-size: 1.75rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Google Maps iframe */
    iframe {
        height: 250px !important;
        min-height: 250px;
    }
    
    /* Input fields touch-friendly */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Предотвращает zoom на iOS */
        min-height: 44px;
    }
    
    /* Cart */
    .cart-summary {
        padding: 1.5rem;
    }
    
    /* Legal */
    .legal-content {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
}

/* Responsive - Contact Page Specific */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    iframe {
        height: 250px !important;
    }
}

/* Responsive - Order Page */
@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cart-summary {
        order: 2;
    }
    
    .order-form {
        order: 1;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Для touch-устройств */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .menu-item:hover {
        transform: none; /* Убираем hover эффекты на touch */
    }
    
    .feature:hover {
        transform: none;
    }
}

/* Landscape orientation для мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2.5rem 1rem;
    }
}

/* Print styles */
@media print {
    header, footer, .cookie-banner, .btn, .add-to-cart {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

