html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Playfair Display', 'Segoe UI', Arial, sans-serif;
    background: #fffdf7;
    color: #33221a;
}

.container {
    max-width: 1100px;
    margin: 0 auto 68px auto;
    text-align: center;
}

.hero {
    position: relative;
    min-height: 600px;
    background: url("img/main.webp") center center no-repeat fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    color: white;
    overflow: hidden;
    filter: brightness(0.84) contrast(1.07);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0.28) 22%, rgba(40, 34, 19, 0.55) 85%);
    z-index: 1;
    pointer-events: none;
}

header.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 36px 7vw 0 7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 2;
    box-sizing: border-box;
}

.logo {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
}

.ripple {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(232, 123, 62, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: rippleEffect 0.5s ease-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes rippleEffect {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

nav a {
    position: relative;
}

@keyframes typed {
    to {
        opacity: 1;
    }
}

.hero h1 span {
    transition: opacity .18s;
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 7px 20px;
    border-radius: 30px;
    transition:
        background .23s,
        color .18s,
        box-shadow .19s,
        transform .17s;
    font-weight: 500;
    background: rgba(30, 30, 30, 0.09);
    box-shadow: 0 2px 12px rgba(232, 123, 62, 0.16);
    position: relative;
}

nav a:hover,
nav a:focus {
    background: linear-gradient(90deg, #fff, #e87b3e22 72%);
    color: #e87b3e;
    box-shadow: 0 4px 18px rgba(232, 123, 62, 0.18);
    transform: scale(1.07) translateY(-2px);
}

.hero h1 {
    position: relative;
    z-index: 3;
    font-size: 54px;
    letter-spacing: 1.3px;
    color: #fffdf7;
    text-shadow: 0 8px 48px rgba(20, 8, 2, 0.56);
    font-family: 'Petit Formal Script', cursive;
    text-align: center;
    background: rgba(51, 34, 26, 0.23);
    border-radius: 19px;
    margin: 0 auto;
    margin-top: 200px;
    max-width: 820px;
    padding: 38px 7vw 24px 7vw;
    animation: fadeInUp 1.1s cubic-bezier(.6, -0.03, .36, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(50px);
    }
}

#shop-status {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ca863c;
    background-color: #fff7e6;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(202, 134, 60, 0.3);
    max-width: 320px;
    margin: 16px auto;
    text-align: center;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#shop-status:hover {
    background-color: #f6dbae;
    cursor: default;
}

.products {
    max-width: 1100px;
    margin: 40px auto 68px auto;
    text-align: center;
}

.products h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #e87b3e;
    margin-top: 0;
    margin-bottom: 38px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(232, 123, 62, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 12px 20px 12px;
    transition: box-shadow .18s, transform .17s;
    position: relative;
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    animation: cardShow .8s cubic-bezier(.65, -0.18, .45, 1.31) forwards;
}

@keyframes cardShow {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    box-shadow: 0 16px 44px rgba(218, 74, 17, 0.16);
    transform: scale(1.04) translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: filter .2s;
}

.product-card:hover img {
    filter: drop-shadow(0 2px 16px #e87b3e77) brightness(1.12);
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e87b3e;
    font-family: 'Playfair Display', serif;
}

.product-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #975e1c;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #333;
    padding: 36px 30px;
    border-radius: 18px;
    min-width: 280px;
    max-width: 95vw;
    max-height: 80vh;
    box-shadow: 0 8px 24px rgba(100, 60, 20, 0.22);
    position: relative;
    text-align: center;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ca863c;
    cursor: pointer;
}

.more-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(90deg, #E8A462 0%, #CA863C 100%);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(232, 123, 62, 0.12);
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.22s;
    margin-top: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    outline: none;
}

.more-btn:hover,
.more-btn:focus {
    background: linear-gradient(90deg, #CA863C 0%, #E8A462 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(232, 123, 62, 0.19);
}

.more-btn:active {
    background: #AD702B;
    transform: scale(0.98);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
}

.img-large {
    grid-column: span 3;
    grid-row: span 2;
}

.img-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.img-small {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #e87b3e;
    margin-top: 0;
    margin-bottom: 38px;
    text-align: center;
}

.gallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.reviews {
    max-width: 1100px;
    margin: 60px auto 40px auto;
    padding: 0 15px;
    text-align: center;
}

.reviews h2 {
    font-size: 32px;
    color: #e87b3e;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.review {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(232, 123, 62, 0.09);
    padding: 20px 30px;
    max-width: 320px;
    font-style: italic;
    color: #33221a;
    box-sizing: border-box;
    position: relative;
    animation: swing 2.6s ease-in-out infinite alternate;
}

.review:nth-child(2) {
    animation-delay: 1.1s;
}

.review:nth-child(3) {
    animation-delay: 1.7s;
}

@keyframes swing {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

.review cite {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    font-style: normal;
    color: #e87b3e;
    text-align: right;
}


footer {
    background: #333;
    color: #ede5dc;
    padding: 48px 0 24px 0;
    text-align: left;

}

.contacts {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0 15px;
    box-sizing: border-box;

}

.info-left {
    flex: 1 1 0;
    min-width: 220px;
    text-align: left;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: brightness(0.93);

}

.socials {
    margin-top: 8px;
    display: flex;
    gap: 12px;

}

.icon-social {
    width: 36px;
    height: 36px;
    filter: grayscale(0.18) brightness(0.92);
    vertical-align: middle;
    transition: filter .2s;

}

.icon-social:hover {
    filter: brightness(1) grayscale(0);
}

.map {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    background: #e9e3da;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-left: 28px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: grayscale(0.5) brightness(90%);
    border: none;
    display: block;
}

.info-right {
    flex: 1 1 0;
    min-width: 220px;
    text-align: right;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    margin-top: 18px;
    color: #cbbca3;
    font-size: 14px;
    text-align: center;
}

/* Адаптивная верстка */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    header.site-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px;
    }

    footer .contacts {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 24px 0;
    }
}

/* Планшет — 900px–1199px */
@media (max-width: 1199px) and (min-width: 900px) {
    .container {
        max-width: 900px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    header.site-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 0;
    }

    footer .contacts {
        flex-direction: row;
        justify-content: space-around;
        padding: 20px 0;
    }
}

/* Мобильные — до 899px */
@media (max-width: 899px) {
    .container {
        max-width: 100%;
        padding: 0 4vw;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    header.site-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }

    header.site-header img {
        height: 56px;
        margin-bottom: 0;
    }

    header.site-header nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    header.site-header nav a {
        font-size: 1.03rem;
        padding: 10px 12px;
        border-radius: 6px;
        transition: background-color 0.2s;
    }

    header.site-header nav a:hover,
    header.site-header nav a:focus {
        background-color: #fde3c0;
    }

    footer .contacts {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 16px 0;
    }

    footer .info-left,
    footer .info-right,
    footer .map {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    footer .map iframe {
        width: 100%;
        min-height: 220px;
        max-height: 260px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.98rem;
        padding: 12px 0 4px;
    }

    .socials {
        gap: 10px;
        padding-top: 9px;
    }

    .icon-social {
        height: 28px;
        width: 28px;
    }
}

/* Минимальные мобильные — до 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 2vw;
    }

    h1 {
        font-size: 1.4rem;
    }

    .product-card {
        padding: 14px 6px;
    }

    .more-btn {
        font-size: 0.94rem;
    }
}