:root {
  --color-primary: #333446;
  --color-secondary: #7F8CAA;
  --color-accent: #B8CFCE;
  --color-light: #EAEFEF;
  --color-text: #333446;
  --color-text-light: #7F8CAA;
  --color-bg: #FFFFFF;
  --color-bg-alt: #EAEFEF;
  
  --font-display: 'Bodoni Moda', serif;
  --font-body: 'Work Sans', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --shadow-sm: 0 2px 4px rgba(51, 52, 70, 0.1);
  --shadow-md: 0 4px 8px rgba(51, 52, 70, 0.15);
  --shadow-lg: 0 8px 16px rgba(51, 52, 70, 0.2);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header {
  position: relative;
  background: var(--color-bg);
  padding: var(--space-md) 0;
  z-index: 1000;
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
  order: 1;
}

.menu-toggle i {
  transition: transform var(--transition-base);
}

.nav {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav a {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-accent) 100%);
  background-image: url('../pictures/bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 800px;
}

.hero h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-lg);
  color: white;
  animation: fadeInUp 0.8s ease;
  text-shadow: 35px 35px 35px black;
}

.hero p {
  font-size: var(--font-size-lg);
  color: white;
  animation: fadeInUp 1s ease;
  text-shadow: 35px 35px 35px black;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-3xl);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.content-item {
  background: var(--color-bg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.asymmetric-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.asymmetric-item {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.asymmetric-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  max-width: 85%;
}

.asymmetric-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  max-width: 85%;
}

.asymmetric-item:nth-child(3n) {
  transform: rotate(-1deg);
}

.asymmetric-item:nth-child(3n+1) {
  transform: rotate(1deg);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  background: var(--color-secondary);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-secondary);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.contact-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-accent) 50%, var(--color-light) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-item i {
  font-size: var(--font-size-xl);
  color: var(--color-secondary);
  margin-top: var(--space-xs);
}

.map-container {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: var(--font-size-sm);
}

.footer a {
  color: var(--color-accent);
}

.footer a:hover {
  color: var(--color-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--color-light);
}

.product-info {
  padding: var(--space-lg);
}

.product-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: var(--space-md);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 52, 70, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  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-bg);
  padding: var(--space-2xl);
  border-radius: var(--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 {
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  z-index: 1;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.error-page h1 {
  font-size: var(--font-size-5xl);
  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-2xl);
}

.thank-you-page h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    z-index: 999;
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav a {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .asymmetric-item {
    max-width: 100% !important;
    transform: none !important;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 13px;
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  .logo {
    font-size: 1.3rem;
  }
}

