:root {
  --primary: rgb(71, 1, 117);
  --secondary: rgb(5, 102, 141);
  --background: #F9FAFB;
  --text-primary: #271116;
  --text-secondary: #6B7280;
  --accent: #0051ad;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: rgba(71, 1, 117, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: rgba(5, 102, 141, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: var(--space-md) 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
}

.logo img {
  width: 2.5rem;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.375rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-xs);
}

.burger span {
  width: 1.5625rem;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

.hero {
  background: linear-gradient(rgba(71, 1, 117, 0.8), rgba(5, 102, 141, 0.8));
  padding: var(--space-xl) 0;
  text-align: center;
  color: #fff;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 50rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 43.75rem;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.experimental-grid-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, var(--background) 0%, rgba(71, 1, 117, 0.03) 100%);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(11.25rem, 1fr));
  gap: var(--space-md);
  position: relative;
  min-height: 31.25rem;
  align-items: stretch;
}

.grid-cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-cell-img1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  box-shadow: var(--shadow-lg);
}

.grid-cell-img2 {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
  transform: translate(-0.75rem, -1.25rem) rotate(-1.5deg);
  z-index: 1;
  box-shadow: 0 20px 40px -10px rgba(71, 1, 117, 0.25);
}

.grid-cell-img3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  box-shadow: var(--shadow-md);
}

.grid-cell-text {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  z-index: 2;
  align-self: center;
  justify-self: end;
  background: rgba(255, 255, 255, 0.97);
  padding: var(--space-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary);
  margin-right: -2rem;
}

.grid-cell-text h2 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.grid-cell-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.grid-cell-text .btn {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
    gap: var(--space-sm);
  }

  .grid-cell-img1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-height: 14rem;
  }

  .grid-cell-img2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    transform: translate(0.5rem, 0.5rem) rotate(2deg);
    min-height: 10rem;
  }

  .grid-cell-img3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 10rem;
  }

  .grid-cell-text {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    margin-right: 0;
    margin-top: 0.5rem;
  }
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(71, 1, 117, 0.1);
}

.form-group textarea {
  min-height: 9.375rem;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.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: 0;
}

footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-section h4 {
  margin-bottom: var(--space-sm);
  color: #fff;
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: #fff;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: var(--space-md);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-content h1 {
  font-size: 6rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.error-content h2 {
  margin-bottom: var(--space-md);
}

.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.thank-you-content {
  max-width: 37.5rem;
}

.thank-you-content i {
  font-size: 4rem;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-md);
}

.faq-item {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
}

.faq-item h3 {
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.contact-info {
  background: #fff;
  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);
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-item-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 18.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  nav ul.active {
    right: 0;
  }
  
  .burger {
    display: flex;
    z-index: 1000;
  }
  
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0.5rem);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-0.5rem);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2.5rem;
    --space-lg: 1.75rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: var(--space-lg) 10px;
  }
  
  .hero h1 {
    font-size: 1.625rem;
  }
  
  .btn {
    padding: 0.625rem 1.375rem;
    font-size: 0.9rem;
  }
  
  .map-container {
    height: 18.75rem;
  }
}

@media (max-width: 360px) {
  .container{
    padding: 0 0.8rem;
  }
  body {
    font-size: 0.875rem;
  }
  .two-column{
    display: flex;
    flex-direction: column;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.025rem;
  }
  
  .logo img {
    width: 2rem;
  }
}
