/* CSS Variables */
:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #dc2626;
  --accent-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #64748b;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Roboto', sans-serif;
  --radius: 0.5rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Text Utilities */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mb-4 { margin-bottom: 1rem; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Icons */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--muted);
  margin-bottom: 1rem;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-center {
  text-align: center;
}

.logo-img {
  height: 3rem;
  width: auto;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--muted);
}

.karnovetia-top_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.karnovetia-top_mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
  background: var(--muted);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .karnovetia-top_mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: var(--background);
  color: var(--foreground);
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.8), rgba(139, 92, 246, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-feature-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-background {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
  padding: 4rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.features-section,
.stats-section,
.process-section,
.about-preview-section,
.why-choose-section,
.testimonials-section,
.faq-preview-section,
.service-section,
.story-section,
.mission-section,
.values-section,
.expertise-section,
.achievements-section,
.location-section,
.contact-section,
.hours-section,
.contact-faq-section,
.service-overview-section {
  padding: 7rem 0;
}

.features-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.stats-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.process-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.about-preview-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.why-choose-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.testimonials-section {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.faq-preview-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.feature-image {
  height: 200px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.feature-description {
  color: var(--muted-foreground);
}

/* Stats */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--foreground);
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-foreground);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-description {
  color: var(--muted-foreground);
}

/* About Preview */
.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-description {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-feature-image {
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .about-preview-content {
    grid-template-columns: 1fr;
  }
}

/* Advantages */
.advantage-card {
  text-align: center;
  padding: 2rem;
}

.advantage-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.advantage-description {
  color: var(--muted-foreground);
}

/* Testimonials */
.testimonial-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.testimonial-image {
  height: 200px;
  overflow: hidden;
}

.testimonial-content {
  padding: 2rem;
}

.testimonial-quote {
  margin-bottom: 1.5rem;
}

.quote-icon {
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--card);
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--muted);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--background);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 200px;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.9;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--primary-foreground);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-outline {
  border-color: var(--primary-foreground);
  color: var(--primary-foreground);
}

.cta-actions .btn-outline:hover {
  background: var(--primary-foreground);
  color: var(--primary);
}

/* Services Page */
.service-section.alt-bg {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-content.reverse {
  direction: rtl;
}

.service-content.reverse > * {
  direction: ltr;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}

.service-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
}

.service-pricing {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.service-img {
  border-radius: var(--radius);
}

.overview-card {
  text-align: center;
  padding: 2rem;
}

.overview-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.overview-description {
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .service-content {
    grid-template-columns: 1fr;
  }
}

/* About Page */
.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.story-description {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
}

.story-img {
  border-radius: var(--radius);
}

.mission-card,
.vision-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mission-title,
.vision-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.mission-description,
.vision-description {
  color: var(--muted-foreground);
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.value-description {
  color: var(--muted-foreground);
}

.expertise-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.expertise-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.expertise-description {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.expertise-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise-feature {
  display: flex;
  gap: 1rem;
}

.feature-text h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.feature-text p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.expertise-img {
  border-radius: var(--radius);
}

.achievement-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.achievement-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.achievement-description {
  color: var(--muted-foreground);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.location-description {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-detail {
  display: flex;
  gap: 1rem;
}

.detail-text h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.detail-text p {
  margin: 0;
  color: var(--muted-foreground);
}

.location-img {
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .story-content,
  .expertise-content,
  .location-content {
    grid-template-columns: 1fr;
  }
}

/* Contact Page */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-title,
.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.form-subtitle,
.info-subtitle {
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.karnovetia-top_contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
}

.form-submit {
  align-self: flex-start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
}

.detail-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.detail-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-note {
  margin: 0.5rem 0 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.detail-address p {
  margin: 0;
  color: var(--muted-foreground);
}

.map-container {
  margin-top: 2rem;
}

.map-placeholder {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.map-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.map-icon {
  width: 3rem;
  height: 3rem;
}

.map-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.map-description {
  margin: 0;
  color: var(--muted-foreground);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.hours-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.hours-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--card-foreground);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.day {
  font-weight: 500;
  color: var(--foreground);
}

.time {
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hours-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  max-width: 400px;
  width: 90%;
}

.success-content {
  text-align: center;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.success-content h3 {
  margin: 0 0 1rem 0;
  color: var(--card-foreground);
  font-size: 1.5rem;
  font-weight: 600;
}

.success-content p {
  margin: 0;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background: #111827;
  color: #f9fafb;
  padding: 3rem 0 1rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer a:hover {
  color: #f9fafb;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-tagline {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d1d5db;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-link {
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.contact-text {
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Legal Content */
.legal-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.legal-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--foreground);
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: var(--foreground);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.last-updated {
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Cookie Table */
.cookie-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* Cookie Banner */
.karnovetia-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1rem 0;
}

.karnovetia-top_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.karnovetia-top_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.karnovetia-top_cookie-banner-text p {
  margin: 0;
  color: var(--card-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.karnovetia-top_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.karnovetia-top_cookie-banner-actions .btn-primary,
.karnovetia-top_cookie-banner-actions .btn-outline {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Cookie Modal */
.karnovetia-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.karnovetia-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.karnovetia-top_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.karnovetia-top_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.karnovetia-top_cookie-toggle-row > div {
  flex: 1;
}

.karnovetia-top_cookie-toggle-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
}

.karnovetia-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .karnovetia-top_cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .karnovetia-top_cookie-banner-actions {
    justify-content: center;
  }
  
  .karnovetia-top_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.feature-card,
.service-card,
.testimonial-card,
.process-step,
.advantage-card,
.value-card,
.achievement-card,
.stat-item {
  
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#karnovetia-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#karnovetia-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#karnovetia-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
