:root {
  --primary: #1f1f20ff;
  --secondary: rgb(86, 0, 112);
  --background: #F9FAFB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --accent: rgb(82, 5, 224);
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.9375rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header {
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(31, 31, 32, 0.08);
  position: relative;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
  color: var(--primary);
}

.logo img {
  width: 2.5rem;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(82, 5, 224, 0.05);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.burger span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(82, 5, 224, 0.03) 0%, rgba(86, 0, 112, 0.03) 100%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 43.75rem;
  margin: 0 auto var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 50rem;
  margin: 0 auto var(--space-xl);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(31, 31, 32, 0.06);
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.form {
  max-width: 37.5rem;
  margin: 0 auto;
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  background: white;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 5, 224, 0.1);
}

.form-textarea {
  min-height: 9.375rem;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.footer {
  background: var(--primary);
  color: white;
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-2xl);
}

.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 {
  color: white;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  line-height: 1.8;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.footer-menu a:hover {
  color: white;
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-xl);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  z-index: 10000;
  border-top: 3px solid var(--accent);
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-popup-content {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-popup p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  flex: 1;
  min-width: 15.625rem;
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.image-text-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: var(--space-lg) 0;
}

.image-text-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(31, 31, 32, 0.9), transparent);
  color: white;
  padding: var(--space-lg);
}

.image-text-overlay h3 {
  color: white;
  margin-bottom: var(--space-xs);
}

.image-text-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.section-diagonal {
  padding: 0;
  overflow: hidden;
  background: var(--primary);
}

.diagonal-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 28rem;
  max-width: 75rem;
  margin: 0 auto;
}

.diagonal-content-block {
  padding: var(--space-2xl) var(--space-xl) var(--space-2xl) calc(var(--space-xl) + 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  background: var(--primary);
  color: white;
}

.diagonal-title {
  color: white;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.diagonal-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 22rem;
}

.diagonal-content-block .btn {
  align-self: flex-start;
  background: white;
  color: var(--primary);
}

.diagonal-content-block .btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
}

.diagonal-image-wrap {
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  position: relative;
  margin-left: -2%;
}

.diagonal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 28rem;
  display: block;
}

@media (max-width: 768px) {
  .diagonal-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .diagonal-content-block {
    clip-path: none;
    padding: var(--space-xl) var(--space-md);
    order: 1;
  }

  .diagonal-image-wrap {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    margin-left: 0;
    order: 2;
    min-height: 20rem;
  }

  .diagonal-image-wrap img {
    min-height: 20rem;
  }

  .diagonal-title {
    font-size: 1.5rem;
  }

  .diagonal-text {
    max-width: none;
  }
}

.error-page,
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-content,
.thankyou-content {
  max-width: 37.5rem;
}

.error-content h1,
.thankyou-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.error-content p,
.thankyou-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.map-container {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 25rem;
  border: none;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 18.75rem;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
  }
  
  .nav.active {
    display: flex;
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-xs);
    align-items: stretch;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .privacy-popup-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .privacy-popup-buttons {
    width: 100%;
  }
  
  .privacy-popup-buttons .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .form {
    padding: var(--space-lg);
  }
  
  .error-content h1,
  .thankyou-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 362px) {
  html {
    font-size: 93.75%;
  }
  
  .logo img {
    width: 2rem;
  }
  .logo{
    font-size: 1rem;
  }
  
  .hero {
    padding: var(--space-lg) 0;
  }
}
