:root {
  --color-primary: #C9A882;
  --color-background: #FAF7F3;
  --color-text: #3D2F25;
  --color-secondary: #9B7A6B;
  --color-accent: #D4B89A;
  --color-white: #FFFFFF;
  --color-light: #FFFCF9;
  --color-dark: #2C1F18;
  --color-gold: #B8906D;
  --color-terracotta: #B87D5A;
  --color-sage: #A8A68F;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --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.5rem;
  --radius-lg: 1rem;
  
  --shadow-sm: 0 2px 8px rgba(58, 46, 36, 0.08);
  --shadow-md: 0 4px 16px rgba(58, 46, 36, 0.12);
  --shadow-lg: 0 8px 32px rgba(58, 46, 36, 0.16);
  
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-container {
  position: relative;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light) 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(201, 168, 130, 0.3), transparent) 1;
  z-index: 100;
  padding: var(--space-xs) 0;
  box-shadow: 0 2px 20px rgba(58, 46, 36, 0.05);
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xs) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: var(--space-md);
}

.logo-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-gold));
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.nav-link {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--color-text);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 130, 0.1), rgba(184, 144, 109, 0.1));
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  z-index: 102;
  padding: var(--space-xs);
}

.close-menu {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(201, 168, 130, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  z-index: 102;
  padding: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(58, 46, 36, 0.15);
}

.close-menu:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(58, 46, 36, 0.2);
}

@media (min-width: 769px) {
  .close-menu {
    display: none !important;
  }
}

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../gallery/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 46, 36, 0.55) 0%, rgba(201, 168, 130, 0.25) 50%, rgba(42, 31, 24, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--color-white);
  padding: var(--space-xl);
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.25rem);
  margin-bottom: var(--space-xl);
  opacity: 0.92;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.animated-figure {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(201, 168, 130, 0.25), rgba(184, 144, 109, 0.2));
  animation: float 8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  filter: blur(1px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.animated-figure:nth-child(2) {
  width: 140px;
  height: 140px;
  top: 15%;
  right: 12%;
  animation-delay: -2.5s;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(225deg, rgba(155, 122, 107, 0.2), rgba(201, 168, 130, 0.15));
}

.animated-figure:nth-child(3) {
  width: 110px;
  height: 110px;
  bottom: 20%;
  left: 8%;
  animation-delay: -5s;
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  background: linear-gradient(45deg, rgba(184, 144, 109, 0.2), rgba(155, 122, 107, 0.15));
}

.animated-figure:nth-child(4) {
  width: 90px;
  height: 90px;
  top: 60%;
  right: 25%;
  animation-delay: -3.5s;
  border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  background: linear-gradient(315deg, rgba(201, 168, 130, 0.18), rgba(184, 144, 109, 0.12));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    transform: translateY(-25px) translateX(15px) rotate(90deg) scale(1.05);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    transform: translateY(-40px) translateX(-10px) rotate(180deg) scale(0.95);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  75% {
    transform: translateY(-20px) translateX(-20px) rotate(270deg) scale(1.02);
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  }
}

.section {
  padding: var(--space-xxl) var(--space-md);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  position: relative;
  display: inline-block;
  width: 100%;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 2px;
}

.contact-grid .section-title {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 130, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 130, 0.3);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-icon {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, rgba(201, 168, 130, 0.1), rgba(184, 144, 109, 0.05));
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(201, 168, 130, 0.15), transparent);
}

.card-icon i {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.card:hover .card-icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-gold);
}

.card-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.card-text {
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  color: var(--color-text);
  opacity: 0.85;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 50%, var(--color-terracotta) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.cta-section h2,
.cta-section p {
  color: var(--color-white);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(43, 30, 22, 0.1);
  border-radius: var(--radius-md);
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.form-checkbox input {
  margin-top: 4px;
  cursor: pointer;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: var(--space-xs);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.home-button {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.home-button:hover {
  background: var(--color-secondary);
  transform: translateX(-5px);
  color: var(--color-white);
}

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.legal-content th,
.legal-content td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid rgba(43, 30, 22, 0.1);
}

.legal-content th {
  background: var(--color-light);
  font-weight: 600;
}

.thank-you-content,
.error-content {
  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-content h1,
.error-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

.thank-you-content p,
.error-content p {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  max-width: none;
  margin-bottom: var(--space-md);
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-lg);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  display: none;
}

.privacy-popup.active {
  display: block;
}

.popup-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.popup-text {
  flex: 1;
  min-width: 250px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
}

.btn-popup {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all var(--transition);
}

.btn-popup.accept {
  background: var(--color-white);
  color: var(--color-text);
}

.btn-popup:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.price-card {
  text-align: center;
  padding: var(--space-xl);
}

.price-amount {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-primary);
  font-weight: 700;
  margin: var(--space-md) 0;
}

.price-period {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.feature-list {
  list-style: none;
  text-align: left;
  margin: var(--space-lg) 0;
}

.feature-list li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  * {
    max-width: 100%;
  }

  .section {
    overflow-x: hidden;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform var(--transition);
    z-index: 101;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu.active .close-menu {
    display: flex;
  }

  .nav-menu.active ~ .menu-toggle {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .section .grid,
  .section > div > div[class*="grid"],
  .section div[style*="grid-template-columns"],
  .container div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .popup-content {
    flex-direction: column;
    text-align: center;
  }

  .popup-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-popup {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid .section-title {
    text-align: center;
  }

  .section > div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .section > div[style*="grid-template-columns"] > div[style*="grid-column"] {
    grid-column: 1 / -1 !important;
  }
  
  .section > div[style*="grid-template-columns: repeat(2"] > div[style*="grid-column: 1 / -1"] {
    grid-template-columns: 1fr !important;
  }

  .section > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  .section > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .section > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  .section > div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xxl: 3rem;
    --space-xl: 2rem;
  }

  .hero-section {
    min-height: 65vh;
  }

  .hero-content {
    padding: var(--space-lg);
    text-align: center;
  }

  .section {
    padding: var(--space-xl) var(--space-md);
  }
}
