:root {
  --color-primary: #8D0B41;
  --color-secondary: #D39D55;
  --color-tertiary: #D6CFB4;
  --color-light: #FFF8E6;
  --color-dark: #333333;
  --color-text: #333333;
  --color-text-light: #ffffff;

  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Montserrat', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.header {
  position: relative;
  background-color: var(--color-light);
  border-bottom: 1px solid rgba(141, 11, 65, 0.1);
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.header-centered {
  position: relative;
  transform: translateY(0);
  transition: transform var(--transition-medium);
}

.header-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background-color: rgba(141, 11, 65, 0.05);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition-fast);
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
  top: 9px;
}

.menu-toggle span:nth-child(4) {
  top: 18px;
}

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.menu-toggle.active span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.menu-toggle.active span:nth-child(4) {
  top: 9px;
  width: 0%;
  left: 50%;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/paper-waves.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-light);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  font-weight: 400;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
  position: relative;
  z-index: 1000;
}

.btn-primary:hover {
  background-color: #7a0938;
  color: var(--color-light);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: #c08943;
  color: var(--color-light);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-hero {
  background-color: var(--color-light);
  color: var(--color-primary);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
}

.btn-hero:hover {
  background-color: rgba(255, 248, 230, 0.9);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.features {
  background-color: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-dark);
  opacity: 0.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.feature-text {
  color: var(--color-text);
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-content {
  padding: var(--space-lg);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.product-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.product-description {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  opacity: 0.9;
}

.testimonials {
  background-color: var(--color-tertiary);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/paper-texture.jpg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 1;
}

.testimonials .section-header,
.testimonials-grid {
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background-color: var(--color-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -15px;
  font-size: 3rem;
  color: var(--color-secondary);
  font-family: var(--font-primary);
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: var(--space-sm);
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 600;
  margin-bottom: 0;
}

.testimonial-author-title {
  font-size: 0.85rem;
  opacity: 0.7;
}

.contact {
  position: relative;
}

.contact-form {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-right: var(--space-sm);
  margin-top: 4px;
}

.contact-info-content h4 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-secondary);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.form-check-input {
  margin-right: var(--space-sm);
  margin-top: 5px;
}

.form-check-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.map {
  height: 400px;
  margin-top: var(--space-xl);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: var(--space-lg) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}



.footer-description {
  max-width: 300px;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-light);
  transition: background-color var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.footer-links-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-light);
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: var(--space-xs);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--color-light);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  padding: var(--space-md) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookie-text {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.error-text {
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  background-color: var(--color-light);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.thank-you-text {
  max-width: 600px;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .hero {
    height: 60vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-light);
    padding: 80px var(--space-md) var(--space-md);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-medium);
    z-index: 100;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-item {
    margin: var(--space-sm) 0;
    margin-left: 0;
  }

  .nav-link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1.1rem;
  }

  .hero {
    height: auto;
    padding: var(--space-xl) 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid,
  .products-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .contact-form {
    padding: var(--space-lg);
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .thank-you-title {
    font-size: 1.8rem;
  }
}