:root {
  --color-bg: #FDF6F0;
  --color-accent: #D67F61;
  --color-secondary: #3C5A40;
  --color-text: #333333;
  --color-white: #FFFFFF;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-hero: 3rem;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

body.menu-open {
  overflow: hidden !important;
  height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 127, 97, 0.03) 0%, rgba(60, 90, 64, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212, 127, 97, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(60, 90, 64, 0.05) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 3%) rotate(1deg); }
  66% { transform: translate(-2%, -3%) rotate(-1deg); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-xxl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.header {
  position: relative;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(253, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 127, 97, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
  overflow: visible;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  width: 100%;
  gap: var(--space-md);
  z-index: 100;
  overflow: visible;
}

.header-content nav {
  position: static;
  overflow: visible;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
  order: 1;
}

.nav-menu li a {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-text);
  font-size: var(--font-size-xl);
  z-index: 101;
  position: relative;
}

.menu-toggle:hover {
  color: var(--color-accent);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 246, 240, 0.85) 0%, rgba(253, 246, 240, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
  transition: left var(--transition-base);
  z-index: 0;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:hover span {
  color: var(--color-white);
}

.btn:hover::before {
  left: 0;
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.card p {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.product-card h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin: var(--space-sm) 0;
}

.product-materials {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(212, 127, 97, 0.2);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-family: 'Playfair Display', serif;
  transition: border-color var(--transition-base);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: var(--font-size-sm);
  font-weight: normal;
  margin-bottom: 0;
}

.map-container {
  margin-top: var(--space-xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin-bottom: var(--space-md);
}

.footer-menu a {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  opacity: 0.9;
  transition: opacity var(--transition-base);
}

.footer-menu a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer p {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-bottom: var(--space-xs);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.legal-content h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
  text-align: center;
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
  font-size: var(--font-size-xl);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.home-button {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
}

.home-button:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateX(-5px);
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.error-page h1 {
  font-size: 6rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.thank-you-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.thank-you-page h1 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.thank-you-page p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-content h2 {
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.popup-content p {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.popup-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.popup-buttons .btn {
  flex: 1;
  margin-top: 0;
}

@media (max-width: 768px) {
  :root {
    --font-size-hero: 2rem;
    --font-size-xxl: 1.5rem;
    --font-size-xl: 1.25rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .header-content {
    padding: 0 var(--space-sm);
    gap: var(--space-sm);
  }

  .logo {
    font-size: 1.3rem;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
    order: 2;
    position: relative;
    z-index: 100000;
    margin-left: auto;
    flex-shrink: 0;
  }

  .header {
    overflow: visible !important;
  }

  .header-content {
    overflow: visible !important;
  }

  .header-content nav {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
    will-change: auto !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    padding-top: calc(var(--space-xxl) + 80px);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    z-index: 99999 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    align-items: center;
    justify-content: center;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(212, 127, 97, 0.1);
    text-align: center;
  }

  .hero {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-menu {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .map-container iframe {
    height: 300px;
  }

  body::after {
    animation-duration: 30s;
  }
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 2.5rem;
    --font-size-hero: 1.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .header-content {
    padding: 0 var(--space-sm);
    gap: var(--space-xs);
  }

  .logo {
    font-size: 0.8rem;
    max-width: calc(100% - 50px);
  }

  .card,
  .product-card {
    padding: var(--space-md);
  }

  .error-page h1 {
    font-size: 4rem;
  }

  .popup-content {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  :root {
    --font-size-base: 0.875rem;
    --font-size-sm: 0.75rem;
  }

  .logo {
    font-size: 0.8rem;
    max-width: calc(100% - 45px);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 0 var(--space-xs);
  }

  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }
}

