:root {
  --color-primary: #6B4E71;
  --color-secondary: #D4A574;
  --color-accent: #9B7EAC;
  --color-light: #F5EDE4;
  --color-dark: #2C2633;
  --color-muted: #8B7B88;
  --color-white: #FFFFFF;
  --color-bg: #FAF7F2;
  --color-border: #E6D9CE;

  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Raleway', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 0.125rem 0.25rem rgba(44, 38, 51, 0.1);
  --shadow-md: 0 0.5rem 1rem rgba(44, 38, 51, 0.15);
  --shadow-lg: 0 1rem 2rem rgba(44, 38, 51, 0.2);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.header {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: var(--space-sm) 0;
  transition: transform var(--transition-normal);
  z-index: 1000;
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.85;
  color: var(--color-white);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.burger-line {
  width: 1.5rem;
  height: 0.125rem;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

.burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
  padding: var(--space-xl) var(--space-sm);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../pictures/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 50rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 0.125rem solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.3125rem);
}

.card-image {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.price-card {
  text-align: center;
  border: 0.125rem solid var(--color-border);
}

.price-card:hover {
  border-color: var(--color-secondary);
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: var(--space-sm) 0;
}

.price-currency {
  font-size: 1.25rem;
}

.feature-list {
  list-style: none;
  margin: var(--space-md) 0;
  text-align: left;
}

.feature-list li {
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.feature-list li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: 700;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  border: 0.125rem solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  background-color: var(--color-white);
  color: var(--color-dark);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 9.375rem;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox {
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  cursor: pointer;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  min-width: 1.5rem;
}

.contact-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.map-container {
  width: 100%;
  height: 25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-link {
  color: var(--color-light);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-secondary);
}

.footer-text {
  color: var(--color-light);
  opacity: 0.8;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 38, 51, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 31.25rem;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  line-height: 1;
}

.popup-close:hover {
  color: var(--color-primary);
}

.popup h3 {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.popup p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.popup-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.error-content h1 {
  font-size: 6rem;
  color: var(--color-secondary);
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.thank-you-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.thank-you-content {
  max-width: 37.5rem;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 16.875rem;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-list.active {
    right: 0;
    display: flex;
  }

  .burger {
    display: flex;
    z-index: 1001;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: var(--space-md);
  }

  .map-container {
    height: 18.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2.5rem;
    --space-lg: 2rem;
  }

  .header {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  .card {
    padding: var(--space-sm);
  }

  .popup-content {
    padding: var(--space-md);
  }
}

/* Update the base logo style */
.logo {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Add tablet breakpoint (between 768px and 480px) */
@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    max-width: calc(100vw - 8rem);
    /* Leave space for burger menu */
  }
}

/* Update the 480px breakpoint */
@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
    letter-spacing: 0;
    max-width: calc(100vw - 7rem);
  }
}

/* Update the 320px breakpoint */
@media (max-width: 320px) {
  .logo {
    font-size: 0.9rem;
    max-width: calc(100vw - 6rem);
  }
}

.logo-short {
  display: none;
}

@media (max-width: 480px) {
  .logo-full {
    display: none;
  }

  .logo-short {
    display: inline;
  }
}

@media (max-width: 320px) {
  .container {
    width: 95%;
  }

  .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}