:root {
  --color-primary: #432323;
  --color-secondary: #2F5755;
  --color-accent: #5A9690;
  --color-light: #E0D9D9;
  --color-dark: #1a1a1a;
  --color-white: #ffffff;
  --color-black: rgba(0, 0, 0, 0.9);

  --font-primary: 'Italiana', 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;

  --header-height: 5rem;
  --footer-height: 3rem;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --grain-opacity: 0.05;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 2px;
  background-color: var(--color-accent);
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.flex-around {
  justify-content: space-around;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: #5b3030;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: #3a6865;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-light);
}

.btn-accent:hover {
  background-color: #6baaa4;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  color: var(--color-accent);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-accent {
  background-color: var(--color-accent);
}

.bg-light {
  background-color: var(--color-light);
}

.bg-dark {
  background-color: var(--color-dark);
}

.hide {
  display: none;
}

.show {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.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;
  }
}

.nav-desktop {
  display: none;
}

.nav-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.nav-mobile-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-light);
  margin: 6px 0;
  transition: all var(--transition-fast);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-black);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.nav-item a {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-light);
  transition: color var(--transition-fast);
}

.nav-item a:hover {
  color: var(--color-accent);
}

.header-scrolled {
  background-color: rgba(67, 35, 35, 0.95);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--color-light);
  padding: 0 var(--space-md);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.light-leak {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 100, 0.15), transparent);
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 2;
}

.about {
  padding: var(--space-xxl) 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about-img {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.about-text {
  margin-bottom: var(--space-lg);
}

.services {
  padding: var(--space-xxl) 0;
  background-color: var(--color-secondary);
  color: var(--color-light);
  position: relative;
}

.services-title {
  color: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-medium);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.service-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery {
  padding: var(--space-xxl) 0;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-light);
  text-align: center;
}

.testimonials {
  padding: var(--space-xxl) 0;
  background-color: var(--color-light);
  position: relative;
}

.testimonial-card {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-primary);
}

.products {
  padding: var(--space-xxl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: var(--space-lg);
}

.product-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.product-description {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.product-price {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.contact {
  padding: var(--space-xxl) 0;
  background-color: var(--color-primary);
  color: var(--color-light);
  position: relative;
}

.contact-title {
  color: var(--color-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-icon {
  margin-right: var(--space-md);
  font-size: 1.25rem;
  color: var(--color-accent);
}

.contact-text {
  font-size: 0.9rem;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--color-light);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.form-checkbox input {
  margin-right: var(--space-sm);
  margin-top: 0.3rem;
}

.form-checkbox label {
  font-size: 0.8rem;
}

.form-submit {
  width: 100%;
}

.map {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.footer {
  padding: var(--space-md) 0;
  background-color: var(--color-dark);
  color: var(--color-light);
   position: relative;
  z-index: 9999;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-nav {
  margin-bottom: var(--space-sm);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-nav-item a {
  font-size: 0.8rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-nav-item a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-social-link {
  font-size: 1.25rem;
  color: var(--color-light);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-social-link:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--space-md);
  z-index: 9990;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.cookie-notice-text {
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.cookie-notice-buttons {
  display: flex;
  gap: var(--space-sm);
}

.btn-cookie {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
}

.error-code {
  font-family: var(--font-primary);
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.thank-you {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
}

.thank-you-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.thank-you-message {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.policy {
  padding: var(--space-xxl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.policy-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.policy-section {
  margin-bottom: var(--space-xl);
}

.policy-section-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.policy-text {
  margin-bottom: var(--space-md);
}

@media (min-width: 576px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }

  .about-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-notice-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-notice-text {
    margin-bottom: 0;
    flex-grow: 1;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: block;
  }

  .nav-mobile-toggle {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map {
    height: 400px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plain-page {
  background-color: white;
  color: black;
  font-family: sans-serif;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.plain-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.plain-page h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.plain-page p {
  margin-bottom: 1rem;
}

.plain-page ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.film-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 35, 35, 0.1);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 5;
}