﻿@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .header {
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav ul {
    flex-direction: column;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav li {
    padding: 0 20px;
  }

  .nav a {
    display: inline-flex;
    padding: 6px 0;
  }

  .burger {
    display: flex;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
  }

  .hero {
    height: clamp(260px, 62svh, 520px);
    min-height: 260px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .contacts-center {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    gap: 12px;
    align-items: center;
  }

  .contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  .contact-role,
  .contact-phone {
    padding: 0;
    border: none;
    width: 100%;
    text-align: center;
  }

  .map-contant {
    flex-direction: column;
  }

  .map-contant iframe {
    max-width: 100%;
    height: 350px;
  }

  .about-p {
    flex-direction: column;
  }

  .about-p img {
    max-width: 100%;
  }

  .about-us h1 {
    font-size: 28px;
  }

  .about-p p {
    font-size: 16px;
  }

  .advices {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advices > div {
    padding: 25px;
    min-height: auto;
  }

  .advices h1 {
    font-size: 26px;
  }

  .adv h3 {
    font-size: 18px;
  }

  .adv li {
    font-size: 14px;
  }

  .factory-top {
    flex-direction: column;
  }

  .factory-cover {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .factory-cover img {
    height: 320px;
  }

  .logo-header img {
    margin-bottom: 0;
  }

  .hero-dots {
    bottom: 12px;
    gap: 8px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }

  .factory-item iframe {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: clamp(220px, 54svh, 420px);
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .product-card,
  .product-cardd {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .product-card,
  .product-cardd {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pagination {
    gap: 6px;
    margin-top: 22px;
    justify-content: center;
  }

  .pagination .page-btn {
    min-width: 34px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .pagination .page-btn {
    min-width: 30px;
    padding: 7px 8px;
    font-size: 12px;
  }
}

