

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 1200px) {
  :root {
    --container-width: 1000px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 80px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 30px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.8rem;
    font-weight: 600;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .positioning-grid,
  .service-content,
  .domains-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .conviction-grid {
    grid-template-columns: 1fr;
  }
  
   .evidence-diagram {
        flex-direction: column !important; 
        justify-content: center !important;
        padding: 30px 0 !important;
        gap: 10px !important;
    }

  .diagram-node {
    padding: 10px 5px !important;
    flex: 1 !important;
    min-width: 0 !important; 
  }

  .diagram-node i {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
  }

  .diagram-node span {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
  }

  .diagram-arrow {
    font-size: 1rem !important;
    margin: 0 2px !important;
    flex-shrink: 0 !important;
    transform: rotate(90deg) !important;
    animation: bounceRight 2s infinite;
  }
  
  @keyframes bounceRight {
    0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.5; }
    50% { transform: rotate(90deg) translateX(5px); opacity: 1; }
  }
  
  .service-text .lead {
    border-left: none;
    border-bottom: 4px solid var(--secondary);
    padding-left: 0;
    padding-bottom: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .footer-col li { margin-bottom: 0; }
  
  .email-link-big {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .domains-tabs-nav {
    gap: 20px;
  }
  
  .domains-tab-btn {
    font-size: 0.9rem;
    padding: 15px 0;
  }
  
  .domains-image-wrapper {
    height: 300px;
    order: -1; 
  }
  
  .short-positioning {
    padding: 60px 0;
  }
  
  .statement-text {
    font-size: 1.5rem;
    padding: 20px;
  }
  
  .positioning-statement i {
    display: none;
  }
  
  .expertise-card,
  .conviction-card {
    padding: 25px;
  }
  
  .contact-form.focus-mode {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 60px;
  }
  
  .container {
    padding: 0 20px;
    box-sizing: border-box; 
  }
  
  .hero {
    min-height: 100svh; 
  }
  
  .hero-title {
    font-size: 2rem;
    gap: 0.1em;
  }


@media (max-width: 992px) {
    .hero-title {
        gap: 0.05em; 
        max-width: 100%;
    }
    
    .hero-title .line {
        white-space: normal; 
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.5rem);
        gap: 0.02em; 
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        gap: 0; 
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        gap: 12px;
        margin-bottom: 30px;
    }
}
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .diagram-node i {
    width: 100px !important;
    height: 100px !important;
    font-size: 2rem !important;
  }
  
  .diagram-node span {
    font-size: 1.1rem !important;
  }
  
  .diagram-arrow {
    font-size: 0.8rem !important;
    margin: 0 !important;
  }
  
  .model-diagram {
    padding: 20px;
  }
  
  .model-layer {
    padding: 15px 20px;
    gap: 15px;
  }
  
  .layer-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .model-layer span {
    font-size: 0.9rem;
  }
  
  .model-connector {
    height: 25px;
  }
  
  .expertise-value ul {
    flex-direction: column;
    gap: 8px;
  }
  
  .expertise-value li {
    width: 100%;
  }
  
  .contact-form.focus-mode {
    padding: 20px;
    border-radius: 16px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .hero-cta {
    margin-bottom: 20px;
  }
}