:root {
  --primary: #3D2F1E;
  --secondary: #C9A87A;
  --wood: #8B6F47;
  --highlight: #E8D5B7;
  --bg: #FAF8F3;
  --line: #D4C4A8;
  --accent: #B8956A;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-organic: 15px 8px 20px 5px;
  --shadow-sm: 0 3px 6px rgba(61, 47, 30, 0.08);
  --shadow-md: 0 6px 16px rgba(61, 47, 30, 0.12);
  --shadow-lg: 0 10px 30px rgba(61, 47, 30, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--bg);
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(232, 213, 183, 0.03) 2px, rgba(232, 213, 183, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(232, 213, 183, 0.03) 2px, rgba(232, 213, 183, 0.03) 4px);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
}

.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section:nth-child(odd) {
  padding-left: 5%;
  padding-right: 0;
}

.section:nth-child(even) {
  padding-left: 0;
  padding-right: 5%;
}

.header {
  position: relative;
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  z-index: 100;
  border-bottom: 2px solid var(--highlight);
  box-shadow: 0 2px 8px rgba(61, 47, 30, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--wood) 0%, var(--accent) 50%, var(--wood) 100%);
  border-radius: 2px;
  opacity: 0.6;
}

.nav-menu {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
}

.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wood), var(--accent));
  border-radius: 2px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(139, 111, 71, 0.3);
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  z-index: 101;
  position: relative;
}

.menu-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 102;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  background-image: url('../pictures/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: var(--space-xxl) var(--space-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(61, 47, 30, 0.5) 0%, rgba(139, 111, 71, 0.4) 50%, rgba(184, 149, 106, 0.3) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(61, 47, 30, 0.5) 0%, rgba(139, 111, 71, 0.4) 50%, rgba(184, 149, 106, 0.3) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(232, 213, 183, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 168, 122, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
  grid-column: 1;
  align-self: center;
  padding: var(--space-xl);
  max-width: 600px;
  margin-left: 10%;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  transform: rotate(-1deg);
}

.hero h1::before {
  content: '✦';
  display: block;
  font-size: 2rem;
  color: var(--highlight);
  margin-bottom: var(--space-sm);
  transform: rotate(15deg);
  opacity: 0.8;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--highlight);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--accent);
  transform: rotate(0.5deg);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--wood);
  color: white;
  border: 3px solid var(--wood);
  border-radius: var(--radius-organic);
  cursor: pointer;
  transition: var(--transition);
  margin-top: var(--space-md);
  position: relative;
  box-shadow: 0 4px 12px rgba(139, 111, 71, 0.25);
}

.btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-organic);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 0.4;
}

.btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 6px 20px rgba(139, 111, 71, 0.35);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.section-title {
  text-align: left;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
  max-width: 80%;
  transform: rotate(-0.5deg);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--wood), var(--accent), transparent);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--wood);
  text-align: left;
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  padding: 0 var(--space-md);
  transform: rotate(-1deg);
}

.section-subtitle::before {
  content: '✻';
  color: var(--accent);
  font-size: 0.8rem;
  margin-right: var(--space-xs);
  opacity: 0.6;
  transform: rotate(20deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
}

.section:nth-child(odd) .grid {
  padding-right: 10%;
}

.section:nth-child(even) .grid {
  padding-left: 10%;
}

.card {
  background: white;
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid var(--highlight);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 213, 183, 0.1) 0%, rgba(201, 168, 122, 0.05) 100%);
  pointer-events: none;
  border-radius: var(--radius-organic);
}

.card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-icon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--highlight) 0%, rgba(201, 168, 122, 0.3) 100%);
  border-bottom: 3px solid var(--accent);
  position: relative;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 111, 71, 0.05) 10px, rgba(139, 111, 71, 0.05) 20px);
  pointer-events: none;
}

.card-icon i {
  font-size: 4rem;
  color: var(--wood);
  z-index: 1;
  position: relative;
  text-shadow: 2px 2px 4px rgba(139, 111, 71, 0.2);
  transition: var(--transition);
}

.card:hover .card-icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent);
}

.card-content {
  padding: var(--space-md);
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.card-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: var(--space-md);
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wood);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--highlight);
  color: var(--wood);
  border-radius: 12px 4px 12px 4px;
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--accent);
  box-shadow: 0 2px 4px rgba(139, 111, 71, 0.1);
  position: relative;
}

.tag::after {
  content: '✿';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.6rem;
  color: var(--accent);
  opacity: 0.6;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.process-item {
  text-align: center;
  position: relative;
  padding: var(--space-md);
  border-radius: var(--radius-organic);
  transition: var(--transition);
}

.process-item:hover {
  background: rgba(232, 213, 183, 0.2);
  transform: translateY(-5px);
}

.process-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(139, 111, 71, 0.2);
}

.process-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 80px;
  height: 80px;
  background: var(--highlight);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.4;
}

.process-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.process-text {
  font-size: 0.95rem;
  color: #666;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--wood), var(--accent), var(--wood), transparent);
  margin: var(--space-xl) auto;
  border-radius: 2px;
  position: relative;
}

.divider::before,
.divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.8rem;
}

.divider::before {
  left: -25px;
}

.divider::after {
  right: -25px;
}

.testimonial {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  position: relative;
  border: 2px solid var(--highlight);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(232, 213, 183, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 168, 122, 0.1) 0%, transparent 50%);
}

.testimonial::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--accent);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
  opacity: 0.6;
  text-shadow: 2px 2px 4px rgba(139, 111, 71, 0.2);
  transform: rotate(-5deg);
}

.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood);
  text-align: right;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-organic);
  background: white;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(61, 47, 30, 0.05);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1), inset 0 2px 4px rgba(61, 47, 30, 0.05);
}


.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
}

.map-container {
  margin-top: var(--space-xl);
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--highlight);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.footer {
  background: var(--primary);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
  border-top: 4px solid var(--accent);
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(184, 149, 106, 0.05) 20px, rgba(184, 149, 106, 0.05) 40px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--highlight);
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xs);
  display: block;
}

.footer-section a:hover {
  color: var(--highlight);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.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-xl);
  padding: 0.75rem 1.5rem;
  background: var(--wood);
  color: white;
  border-radius: var(--radius-organic);
  transition: var(--transition);
  border: 2px solid var(--wood);
  box-shadow: 0 3px 8px rgba(139, 111, 71, 0.2);
}

.home-button:hover {
  background: var(--accent);
  transform: translateX(-5px) rotate(-1deg);
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
}

.error-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--wood);
  margin-bottom: var(--space-md);
}

.error-page h2 {
  margin-bottom: var(--space-md);
}

.thank-you-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-page h1 {
  color: var(--wood);
  margin-bottom: var(--space-md);
}

.thank-you-page p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.privacy-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: var(--space-md);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--accent);
}

.privacy-popup.active {
  display: block;
}

.privacy-popup-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-popup-text {
  flex: 1;
  min-width: 250px;
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
}

.privacy-popup-btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.privacy-popup-btn-accept {
  background: white;
  color: var(--primary);
}

.privacy-popup-btn-accept:hover {
  background: transparent;
  color: white;
}

.privacy-popup-btn-decline {
  background: transparent;
  color: white;
}

.privacy-popup-btn-decline:hover {
  background: white;
  color: var(--primary);
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    border-left: 3px solid var(--accent);
    background-image: 
      repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(232, 213, 183, 0.05) 10px, rgba(232, 213, 183, 0.05) 20px);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  body.menu-open .menu-toggle {
    display: none;
  }

  .menu-close {
    display: none;
  }

  body.menu-open .menu-close {
    display: block;
  }

  .hero {
    min-height: 70vh;
    grid-template-columns: 1fr;
    align-items: center;
    padding: var(--space-xl) var(--space-md);
  }

  .hero-content {
    grid-column: 1;
    margin-left: 0 !important;
    text-align: center;
    max-width: 100%;
  }

  .page-home .hero-content {
    margin-left: 0 !important;
    margin-bottom: 0;
  }

  .hero h1 {
    transform: rotate(0deg);
  }

  .hero-subtitle {
    padding-left: 0;
    border-left: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: var(--space-sm);
    transform: rotate(0deg);
  }

  .section:nth-child(odd),
  .section:nth-child(even) {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .section-title {
    text-align: left;
    max-width: 100%;
    transform: rotate(0deg);
  }

  .section-title::after {
    left: 0;
    transform: rotate(0deg);
    width: 100px;
  }

  .section-subtitle {
    text-align: left;
    transform: rotate(0deg);
  }

  .section:nth-child(odd) .grid,
  .section:nth-child(even) .grid {
    padding-left: 0;
    padding-right: 0;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .privacy-popup-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    margin-bottom: var(--space-xl);
  }

  .contact-form ~ div {
    margin-top: var(--space-xl);
  }

  #contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }

  .logo {
    font-size: 1rem;
  }

  .hero-content {
    padding: var(--space-sm);
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
  }

  .card-content {
    padding: var(--space-sm);
  }
}

.page-home .header {
  border-bottom: 3px solid var(--accent);
}

.page-home .hero {
  background-blend-mode: overlay;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-home .hero-content {
  margin-left: 8%;
  margin-bottom: 10%;
}

.page-home .section:first-of-type {
  margin-top: -5%;
  padding-top: 8%;
  background: white;
  border-radius: var(--radius-organic) var(--radius-organic) 0 0;
  position: relative;
  z-index: 1;
}

.page-home .section:nth-child(even) {
  background: linear-gradient(135deg, rgba(232, 213, 183, 0.1) 0%, rgba(201, 168, 122, 0.05) 100%);
}

.page-home .grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.page-home .card:nth-child(odd) {
  transform: rotate(-0.3deg);
}

.page-home .card:nth-child(even) {
  transform: rotate(0.3deg);
}

.page-home .card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
}

.page-products .header {
  border-bottom: 3px solid var(--wood);
}

.page-products .section:first-of-type .section-title,
.page-custom-order .section:first-of-type .section-title,
.page-contact .section:first-of-type .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  transform: rotate(0deg);
}

.page-products .section:first-of-type .section-title::after,
.page-custom-order .section:first-of-type .section-title::after,
.page-contact .section:first-of-type .section-title::after {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
}

.page-products .section:first-of-type .section-subtitle,
.page-custom-order .section:first-of-type .section-subtitle,
.page-contact .section:first-of-type .section-subtitle {
  text-align: center;
  transform: rotate(0deg);
  display: block;
  width: 100%;
}

.page-products .section:first-of-type {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(232, 213, 183, 0.2) 100%);
  padding-top: var(--space-xxl);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin-top: -3%;
  position: relative;
  z-index: 1;
}

.page-products .section:first-of-type::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 10%;
  width: 100px;
  height: 100px;
  background: var(--highlight);
  border-radius: 50%;
  opacity: 0.3;
  transform: rotate(45deg);
}

.page-products .grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.page-products .card {
  border: 3px solid var(--highlight);
  position: relative;
}

.page-products .card::after {
  content: '✿';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.3;
  transform: rotate(15deg);
}

.page-products .card:nth-child(3n+1) {
  border-color: var(--wood);
}

.page-products .card:nth-child(3n+2) {
  border-color: var(--accent);
}

.page-products .card:nth-child(3n+3) {
  border-color: var(--secondary);
}

.page-custom-order .header {
  border-bottom: 3px solid var(--secondary);
}

.page-custom-order {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(232, 213, 183, 0.15) 50%, var(--bg) 100%);
}

.page-custom-order .section:first-of-type {
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
  background: white;
  margin-top: -2%;
  position: relative;
  z-index: 1;
}

.page-custom-order .process-grid {
  position: relative;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.page-custom-order .process-item {
  position: relative;
  margin-left: 5%;
  margin-right: 5%;
}

.page-custom-order .process-item:nth-child(even) {
  margin-left: 10%;
  margin-right: 0;
}

.page-custom-order .process-item:nth-child(odd) {
  margin-left: 0;
  margin-right: 10%;
}

.page-custom-order .process-item {
  background: white;
  border: 2px solid var(--highlight);
  border-radius: var(--radius-organic);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.page-custom-order .process-item:nth-child(odd) {
  border-left: 4px solid var(--wood);
}

.page-custom-order .process-item:nth-child(even) {
  border-right: 4px solid var(--accent);
}

.page-custom-order .process-number {
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0 auto var(--space-md);
  border: none;
  box-shadow: none;
  font-size: 5rem;
  line-height: 1;
  color: var(--wood);
  text-shadow: 2px 2px 4px rgba(139, 111, 71, 0.15);
  position: relative;
}

.page-custom-order .process-number::before {
  display: none;
}


.page-contact .header {
  border-bottom: 3px solid var(--accent);
}

.page-contact .section:first-of-type {
  background: 
    radial-gradient(circle at 30% 20%, rgba(232, 213, 183, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(201, 168, 122, 0.15) 0%, transparent 50%);
  padding-top: var(--space-xxl);
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  position: relative;
}

.page-contact .section:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 15%;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(-30deg);
}

.page-contact #contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xxl);
  align-items: start;
}

.page-contact .contact-form {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-organic);
  border: 3px solid var(--highlight);
  box-shadow: var(--shadow-md);
  position: relative;
}

.page-contact .contact-form::before {
  content: '✉';
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 2rem;
  color: var(--accent);
  background: var(--bg);
  padding: 0 var(--space-sm);
}

.page-contact .form-group:first-child {
  margin-top: var(--space-md);
}

.page-thank-you {
  background: 
    radial-gradient(circle at 50% 50%, rgba(232, 213, 183, 0.3) 0%, transparent 70%),
    linear-gradient(135deg, var(--bg) 0%, rgba(201, 168, 122, 0.1) 100%);
}

.page-thank-you .thank-you-page {
  background: white;
  border-radius: var(--radius-organic);
  border: 4px solid var(--highlight);
  max-width: 700px;
  margin: var(--space-xxl) auto;
  padding: var(--space-xxl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.page-thank-you .thank-you-page::before {
  content: '✓';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--wood);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.page-thank-you .thank-you-page h1 {
  margin-top: var(--space-lg);
}

.page-404 {
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(232, 213, 183, 0.05) 20px, rgba(232, 213, 183, 0.05) 40px),
    linear-gradient(135deg, var(--bg) 0%, rgba(201, 168, 122, 0.1) 100%);
}

.page-404 .error-page {
  background: white;
  border-radius: var(--radius-organic);
  border: 4px dashed var(--accent);
  max-width: 600px;
  margin: var(--space-xxl) auto;
  padding: var(--space-xxl);
  box-shadow: var(--shadow-md);
  position: relative;
}

.page-404 .error-page::before {
  content: '⚠';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--wood);
  background: var(--bg);
  padding: 0 var(--space-sm);
}

.page-404 .error-page h1 {
  font-size: 10rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--wood), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.page-legal {
  background: 
    linear-gradient(90deg, transparent 0%, rgba(232, 213, 183, 0.1) 50%, transparent 100%),
    var(--bg);
}

.page-legal .legal-content {
  background: white;
  border-radius: var(--radius-organic);
  border: 2px solid var(--highlight);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xxl);
  position: relative;
}

.page-legal .legal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--wood), var(--accent), var(--wood));
  border-radius: var(--radius-organic) 0 0 var(--radius-organic);
}

.page-legal .legal-content h1 {
  border-bottom: 3px solid var(--accent);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
}

.page-legal .legal-content h1::after {
  content: '📄';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  opacity: 0.4;
}

.page-legal .legal-content h2 {
  color: var(--wood);
  border-left: 4px solid var(--accent);
  padding-left: var(--space-md);
  margin-top: var(--space-xl);
}

.page-legal .legal-content ul {
  background: rgba(232, 213, 183, 0.1);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--wood);
}

.page-legal .home-button {
  margin-top: var(--space-xxl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}



@media (max-width: 768px) {
  .page-contact #contact-grid {
    grid-template-columns: 1fr;
  }

  .page-home .card:nth-child(odd),
  .page-home .card:nth-child(even) {
    transform: none;
  }

  .page-404 .error-page h1 {
    font-size: 6rem;
  }

  .page-legal .legal-content h2 {
    font-size: 1.25rem;
    padding-left: var(--space-sm);
    margin-top: var(--space-lg);
  }
}

