
@media (max-width: 1024px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
    padding: 14px 20px;
  }

  .logo {
    width: min(65vw, 180px);
    height: 56px;
  }

  .header-actions {
    right: 14px;
    top: 50%;
  }

  nav {
    margin-right: 0;
  }

  .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 0;
    padding: 12px 20px 20px;
    background: var(--header);
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 9px;
    margin-left: auto;
    border: 1px solid #555;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
  }

  .menu.menu-open {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    display: block;
    margin: 0;
    padding: 10px 0;
  }

  .content {
    width: 100%;
    padding: 15px;
  }
}

@media (min-width: 769px) {
  .burger-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 22px;
  }

  .card {
    flex: 1 1 100%;
  }
}