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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #fbbf24;
  --dark: #1e1b4b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav {
  display: none;
}

nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

nav a {
  color: var(--dark);
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s;
}

nav a:hover,
nav a:focus {
  color: var(--primary);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

/* Sections */
section {
  padding: 60px 20px;
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-top: -30px;
  margin-bottom: 40px;
}

/* Features */
.features {
  background: var(--light-gray);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
}

/* Services */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.service-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
}

/* Testimonials */
.testimonials {
  background: var(--light-gray);
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info strong {
  display: block;
  color: var(--dark);
}

.testimonial-info span {
  font-size: 0.9rem;
  color: var(--gray);
}

/* About */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 8px;
  min-width: 120px;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 8px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-item h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-item p,
.contact-item a {
  color: var(--gray);
}

.contact-item a:hover {
  color: var(--primary);
}

/* Thank You */
.thank-you {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.thank-you-content h1 {
  margin-bottom: 15px;
  color: var(--primary);
}

.thank-you-content p {
  color: var(--gray);
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 30px;
  color: var(--dark);
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 1.4rem;
}

.legal-content p,
.legal-content li {
  color: var(--gray);
  margin-bottom: 15px;
}

.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 10px;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 20px 20px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-banner p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.3s;
}

.cookie-banner button:hover {
  opacity: 0.9;
}

.cookie-accept {
  background: var(--accent);
  color: var(--dark);
}

.cookie-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-settings {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
}

.cookie-modal h3 {
  margin-bottom: 20px;
  color: var(--dark);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-info h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.cookie-option-info p {
  font-size: 0.9rem;
  color: var(--gray);
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--light-gray);
  border-radius: 26px;
  transition: background 0.3s;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: var(--shadow);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-modal-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-save {
  background: var(--primary);
  color: var(--white);
}

.cookie-cancel {
  background: var(--light-gray);
  color: var(--dark);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 15px;
  z-index: 10001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Tablet */
@media (min-width: 768px) {
  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid,
  .services-grid,
  .testimonials-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature-card,
  .service-card,
  .testimonial-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
  }

  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-section {
    flex: 1 1 calc(50% - 15px);
    min-width: 200px;
  }

  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner p {
    flex: 1;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  nav {
    display: flex;
  }

  nav ul {
    flex-direction: row;
    gap: 30px;
  }

  nav a {
    padding: 5px;
  }

  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .feature-card,
  .testimonial-card {
    flex: 1 1 calc(33.333% - 20px);
  }

  .service-card {
    flex: 1 1 calc(33.333% - 17px);
  }

  .footer-section {
    flex: 1 1 calc(25% - 23px);
  }

  .about-content {
    flex-direction: row;
  }

  .about-text {
    flex: 1;
  }

  .about-stats {
    flex: 0 0 300px;
    flex-direction: column;
  }
}
