:root {
  --primary: #4b2e1f;
  --primary-dark: #2f1c13;
  --secondary: #fff7ed;
  --accent: #d97706;
  --text: #2b211b;
  --muted: #76685f;
  --white: #ffffff;
  --border: #eadfd4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
}

.demo-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  text-align: center;
}

.demo-bar a {
  background: var(--accent);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: bold;
  white-space: nowrap;
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 44px;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.menu-toggle,
.menu-close {
    display: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 9000;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}


.main-nav {
  z-index: 99999;
}

.menu-close {
  z-index: 10000;
}


nav a {
  margin-left: 24px;
  font-size: 14px;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--accent);
}

section {
  padding: 80px 0;
}

.cream {
  background: var(--secondary);
}

.hero {
  min-height: 680px;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 28, 19, 0.58);
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-content .btn {
  margin-top: 10px;
}

.hero-content p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.demo-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 18px;
}

.hero p {
  color: #f8eee3;
  font-size: 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn:hover {
  background: #b85f05;
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.category-grid,
.products-grid,
.catalog-grid,
.gallery-grid {
  display: grid;
  gap: 26px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 34px 24px;
  border-radius: 18px;
  text-align: center;
  font-size: 34px;
}

.category-card h3 {
  margin-top: 12px;
  font-size: 20px;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-grid img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(75, 46, 31, 0.12);
}

.products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(75, 46, 31, 0.08);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.product-card h3,
.product-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.product-card h3 {
  padding-top: 24px;
}

.product-card p {
  padding-bottom: 24px;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-items {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.contact-items div {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
}

.contact-items strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-buttons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

iframe {
  border-radius: 18px;
}

footer {
  background: var(--primary-dark);
  color: #eadfd4;
  padding: 45px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  color: var(--white);
  margin-bottom: 12px;
}

footer p,
footer a {
  color: #eadfd4;
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: #cbb9aa;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 46px;
  cursor: pointer;
  z-index: 10000;
}
@media (max-width: 900px) {
  .demo-bar-inner {
    flex-direction: column;
    gap: 8px;
  }

  header {
    top: 83px;
     z-index: 10000;
  }

 .header-inner{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }


  .menu-toggle{
        display:block;
        background:none;
        border:0;
        font-size:34px;
        cursor:pointer;
        color:var(--primary);
        padding:0;
    }

  nav {
    text-align: center;
  }

  nav a {
    margin: 0 8px;
    font-size: 13px;
  }

  .main-nav{
       position: fixed;
    top: 105px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 105px);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 70px 30px 30px;
    transition: right .3s ease;
    z-index: 11000;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
    }

    .main-nav.active{
        right:0;
    }

    .main-nav a{
        margin:0;
        font-size:18px;
    }

    .menu-close{
        display:block;

        position:absolute;
        top:15px;
        right:20px;

        background:none;
        border:none;

        font-size:34px;
        line-height:1;

        cursor:pointer;
         z-index: 12000;

        color:var(--primary);
    }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .category-grid,
  .products-grid,
  .catalog-grid,
  .gallery-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img,
  .product-card img {
    height: 230px;
  }
  
}