/* Base responsive utilities */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .hero-section {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 1024px) {
  nav {
    position: relative;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(12px);
    z-index: 50;
    pointer-events: none;
  }

  .nav-wrapper.open {
    padding: 1.5rem 1.5rem 1.75rem;
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.16);
  }

  .lang-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-switcher select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
  }

  body {
    padding-bottom: 0;
  }

  .footer-compact {
    position: static;
    margin-top: 2.5rem;
  }

  .footer-content-compact {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
  }

  .footer-nav-compact {
    flex-direction: row;
    gap: 1rem;
  }

  .footer-contact-compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .page {
    padding: 1.75rem;
  }

  .order-list {
    overflow: hidden;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 30px;
  }

  .hero-section {
    padding: 2.25rem 1.25rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .features-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .order-item input {
    text-align: left;
  }

  .total-order {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  header {
    margin-bottom: 1.5rem;
  }

  .page {
    padding: 1.5rem;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-section {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .step-item {
    padding: 1.75rem;
  }

  .pricing-table {
    gap: 1.25rem;
  }

  .pricing-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .discount-table {
    padding: 1.25rem;
  }

  .calc-modes {
    flex-direction: column;
  }

  .calc-form {
    grid-template-columns: 1fr;
  }

  .result {
    font-size: 1.05rem;
    padding: 1.25rem;
  }

  .order-button-container .order-btn {
    width: 100%;
  }

  .contact-form {
    margin: 1.5rem 0;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input {
    font-size: 0.95rem;
  }

  .faq-item {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .pricing-table,
  .discount-table,
  .calculator-cta {
    padding: 1.2rem;
  }

  .calculator-cta p {
    font-size: 1rem;
  }

  .order-list button.btn {
    width: 100%;
  }

  .total-order {
    padding: 1.2rem;
  }

  .footer-nav-compact {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-contact-compact {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-compact {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 0;
  }

  .page {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .step-item {
    padding: 1.5rem;
  }

  .notice-text {
    font-size: 0.95rem;
  }

  .order-item {
    padding: 1rem 0.85rem;
  }

  .order-item .btn {
    width: 100%;
  }

  .contact-form {
    gap: 0.75rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .footer-logo-compact h3 {
    font-size: 1.5rem;
  }

  .footer-copy-compact {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle,
  .stat-label,
  .feature-item p,
  .step-item p {
    font-size: 0.95rem;
  }

  .menu-toggle span {
    width: 20px;
  }
}
