:root {
  --primary: #0A2342;
  --primary-light: #1a3b5c;
  --secondary: #546A7B;
  --accent: #8A9B68;
  --accent-hover: #7a8b58;
  --bg-primary: #FDFDFD;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #0A2342;
  --text-secondary: #546A7B;
  --border-color: #E0E0E0;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-soft: 0 4px 20px rgba(10, 35, 66, 0.08);
  --shadow-medium: 0 8px 30px rgba(10, 35, 66, 0.12);
  --shadow-strong: 0 12px 40px rgba(10, 35, 66, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 18px;
}

.qm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.qm-grid.wide {
  max-width: 1400px;
}

.qm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.qm-header.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-soft);
}

.qm-nav-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  align-items: center;
}

.qm-logo {
  grid-column: 1 / 4;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.qm-logo svg {
  margin-right: 0.5rem;
  width: 32px;
  height: 32px;
}

.qm-nav-main {
  grid-column: 4 / 10;
  display: flex;
  justify-content: center;
  list-style: none;
}

.qm-nav-main li {
  margin: 0 1.5rem;
}

.qm-nav-main a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.qm-nav-main a:hover,
.qm-nav-main a.active {
  color: var(--accent);
}

.qm-nav-main a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.qm-nav-main a:hover::after,
.qm-nav-main a.active::after {
  width: 100%;
}

.qm-nav-cta {
  grid-column: 10 / 13;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.qm-phone-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.qm-phone-link:hover {
  color: var(--accent);
}

.qm-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.qm-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
}

.qm-main {
  padding-top: 80px;
}

.wk-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(10, 35, 66, 0.85), rgba(84, 106, 123, 0.75)), url('../images/hero1-modern-office-technology_orig.jpg') center/cover;
  color: white;
  overflow: hidden;
}

.wk-hero-content {
  grid-column: 1 / 8;
  z-index: 2;
}

.wk-hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 600;
}

.wk-hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 400;
}

.wk-hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.dk-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}

.dk-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-soft);
}

.dk-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.dk-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dk-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.tp-section {
  padding: 6rem 0;
  position: relative;
}

.tp-section.alt-bg {
  background: var(--bg-secondary);
}

.tp-section.paper-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="1" cy="1" r="0.5" fill="%23E0E0E0" opacity="0.3"/></svg>');
  pointer-events: none;
}

.tp-section-header {
  grid-column: 1 / 13;
  text-align: center;
  margin-bottom: 4rem;
}

.tp-section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.tp-section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.md-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.md-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.md-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.md-card-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
}

.md-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.md-card-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.vs-process-step {
  text-align: center;
  position: relative;
}

.vs-process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.vs-process-step:last-child::after {
  display: none;
}

.vs-process-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.vs-process-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.fb-testimonial {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.fb-testimonial-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.fb-testimonial-author {
  display: flex;
  align-items: center;
}

.fb-testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 1rem;
}

.fb-testimonial-info h4 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fb-testimonial-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.qm-contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.qm-form-group {
  margin-bottom: 2rem;
}

.qm-form-label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.qm-form-input,
.qm-form-select,
.qm-form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.qm-form-input:focus,
.qm-form-select:focus,
.qm-form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 155, 104, 0.1);
}

.qm-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.qm-footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.qm-footer-content {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.qm-footer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.qm-footer-section ul {
  list-style: none;
}

.qm-footer-section ul li {
  margin-bottom: 0.75rem;
}

.qm-footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.qm-footer-bottom {
  grid-column: 1 / 13;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.qm-footer-legal {
  margin-top: 1rem;
}

.qm-footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 1rem;
}

.qm-footer-legal a:hover {
  color: var(--accent);
}

.qm-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.qm-cookie-banner.show {
  transform: translateY(0);
}

.qm-cookie-text {
  flex: 1;
  margin-right: 2rem;
}

.qm-cookie-actions {
  display: flex;
  gap: 1rem;
}

.qm-cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .qm-grid {
    padding: 0 1.5rem;
  }
  
  .tp-section-title {
    font-size: 2.4rem;
  }
  
  .wk-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .qm-nav-main {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-medium);
  }
  
  .qm-nav-main.active {
    left: 0;
  }
  
  .qm-nav-main li {
    margin: 1rem 0;
  }
  
  .qm-menu-toggle {
    display: block;
  }
  
  .qm-phone-link {
    display: none;
  }
  
  .qm-logo {
    grid-column: 1 / 10;
  }
  
  .qm-nav-cta {
    grid-column: 10 / 13;
  }
  
  .wk-hero-content {
    grid-column: 1 / 13;
    text-align: center;
  }
  
  .wk-hero-title {
    font-size: 2.5rem;
  }
  
  .wk-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .wk-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .tp-section-title {
    font-size: 2rem;
  }
  
  .md-card,
  .vs-process-step,
  .fb-testimonial {
    grid-column: 1 / 13 !important;
    margin-bottom: 2rem;
  }
  
  .qm-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .qm-cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .qm-cookie-text {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .qm-grid {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  body {
    font-size: 16px;
  }
  
  .wk-hero-title {
    font-size: 2rem;
  }
  
  .wk-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .tp-section-title {
    font-size: 1.8rem;
  }
  
  .md-card {
    padding: 2rem;
  }
  
  .qm-contact-form {
    padding: 2rem;
  }
}