:root {
  --panel-width: 440px;
  --panel-height: 660px;
  --container-pad: 60px;
  --overlap-factor: 0.94;

  --bg: linear-gradient(180deg, #f8f7f2 0%, #f1efe6 100%);
  --panel-border: rgba(255, 255, 255, 0.15);
  --text: #1f1f1f;
  --text-light: #555;
  --accent: #d68c45;
  --accent-dark: #b67134;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.25);
  --tap-target-min: 48px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

h2 {
  text-align: center;
  margin: 2.8rem 0 1.5rem;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: var(--accent);
  border-radius: 2px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 247, 242, 0.6);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

nav.scrolled {
  background: rgba(248, 247, 242, 0.92);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.nav-left {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.6px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

.nav-center button, 
.nav-right button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s ease;
  padding: .5rem .8rem;
  border-radius: 6px;
  min-height: var(--tap-target-min);
  min-width: var(--tap-target-min);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-center button:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-right button {
  background: rgba(255, 255, 255, 0.1);
  padding: .5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-right button:hover {
  background: var(--accent);
  color: #fff;
  transform: none;
}

#instagram-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 12px;
}

#instagram-link i.fa-instagram {
  color: var(--text);
  font-size: 1.4rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

#instagram-link i.fa-instagram:hover {
  transform: scale(1.15);
  color: var(--text);
}

main {
  padding-top: 90px;
}

.hero-text {
  max-width: 900px;
  margin: 160px auto 100px;
  padding: 0 24px;
  text-align: center;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-light);
  margin: 1rem 0;
}

.carousel-section {
  perspective: 2000px;
  overflow: visible;
  padding: 40px 0;
}

.carousel-container {
  width: 960px;
  height: calc(var(--panel-height) + var(--container-pad));
  margin: 0 auto;
  position: relative;
  perspective: 2000px;
}

.carousel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.rotator {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCarousel 28s infinite linear;
}

.carousel .panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--panel-width);
  height: var(--panel-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel .panel:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-hover);
}

.carousel .panel img {
  max-width: calc(var(--panel-width) - 50px);
  max-height: calc(var(--panel-height) - 50px);
  object-fit: contain;
  border-radius: 12px;
}

@keyframes rotateCarousel {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-360deg); }
}

.category {
  margin: 3.5rem 0;
  text-align: center;
}

.category h3 {
  margin-bottom: 1.3rem;
  font-size: 1.7rem;
  color: var(--text);
}

.grid-gallery {
  padding: 2.5rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.grid img {
  max-width: 260px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

.grid img:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: var(--shadow-hover);
}

.contact-section {
  max-width: 680px;
  margin: 180px auto 120px;
  padding: 0 24px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.6rem;
  margin-bottom: 2.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
  letter-spacing: -0.2px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.3rem;
  border: 1px solid #d6d6d6;
  border-radius: 14px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(214, 140, 69, 0.35);
  outline: none;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.18s ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1000px) {
  :root {
    --panel-width: 360px;
    --panel-height: 540px;
  }

  .carousel-container {
    width: 100%;
    max-width: 720px;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  :root {
    --panel-width: 300px;
    --panel-height: 480px;
  }

  .carousel-container {
    max-width: 600px;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  nav {
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .nav-center {
    position: relative;
    transform: none;
    left: auto;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.4rem;
    justify-content: center;
  }

  .nav-center button,
  .nav-right button {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    min-height: 52px;
    min-width: 72px;
  }

  .nav-right .instagram-icon {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  :root {
    --panel-width: 240px;
    --panel-height: 380px;
  }

  .carousel-container {
    max-width: 400px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  nav {
    padding: 0.9rem 0.9rem;
  }

  .nav-center button,
  .nav-right button {
    font-size: 1rem;
    padding: 0.9rem 1.3rem;
    min-height: 54px;
    min-width: 76px;
  }

  .nav-right .instagram-icon {
    font-size: 1.85rem;
  }
}
